mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Add spec for verifying skip_reading_config? flag defaults to false.
This commit is contained in:
parent
d45285d1c9
commit
48c7a2bde6
1 changed files with 5 additions and 0 deletions
|
@ -47,6 +47,11 @@ module Ameba::Cli
|
|||
c.rules?.should eq false
|
||||
end
|
||||
|
||||
it "defaults skip_reading_config? flag to false" do
|
||||
c = Cli.parse_args %w(file.cr)
|
||||
c.skip_reading_config?.should eq false
|
||||
end
|
||||
|
||||
it "accepts --rules flag" do
|
||||
c = Cli.parse_args %w(--rules)
|
||||
c.rules?.should eq true
|
||||
|
|
Loading…
Reference in a new issue