Show affected code while using a default formatter

This commit is contained in:
Vitalii Elenhaupt 2018-12-12 21:45:00 +02:00
parent 148044f479
commit f671d6f857
No known key found for this signature in database
GPG key ID: 7558EF3A4056C706
7 changed files with 89 additions and 11 deletions

View file

@ -62,6 +62,11 @@ module Ameba::Cli
c.colors?.should be_false
end
it "accepts --without-affected-code flag" do
c = Cli.parse_args %w(--without-affected-code)
c.without_affected_code?.should be_true
end
it "doesn't disable colors by default" do
c = Cli.parse_args %w(--all)
c.colors?.should be_true