Skip to content

Commit

Permalink
Add missing test case for --stdin-filename flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija committed Nov 25, 2024
1 parent 715328b commit 5952882
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/ameba/cli/cmd_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ module Ameba::Cli
end
end

it "accepts --stdin-filename flag" do
c = Cli.parse_args ["--stdin-filename", "foo.cr"]
c.stdin_filename.should eq "foo.cr"
end

it "accepts --only flag" do
c = Cli.parse_args ["--only", "RULE1,RULE2"]
c.only.should eq %w[RULE1 RULE2]
Expand Down

0 comments on commit 5952882

Please sign in to comment.