Add spec for verifying skip_reading_config? flag defaults to false.

This commit is contained in:
Billy.Zheng 2023-03-09 02:23:48 +08:00
parent d45285d1c9
commit 48c7a2bde6

View file

@ -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