mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Show affected code while using a default formatter
This commit is contained in:
parent
148044f479
commit
f671d6f857
7 changed files with 89 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue