Refactor spec to use be_false replace eq false

This commit is contained in:
Billy.Zheng 2023-03-09 12:39:25 +08:00
parent 48c7a2bde6
commit e2528d93dd
3 changed files with 18 additions and 18 deletions

View file

@ -44,12 +44,12 @@ module Ameba::Cli
it "defaults rules? flag to false" do
c = Cli.parse_args %w(file.cr)
c.rules?.should eq false
c.rules?.should be_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
c.skip_reading_config?.should be_false
end
it "accepts --rules flag" do
@ -59,7 +59,7 @@ module Ameba::Cli
it "defaults all? flag to false" do
c = Cli.parse_args %w(file.cr)
c.all?.should eq false
c.all?.should be_false
end
it "accepts --all flag" do