mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Fix newly found offenses
This commit is contained in:
parent
971bff6c27
commit
61ccb030bd
9 changed files with 26 additions and 26 deletions
|
@ -11,23 +11,23 @@ module Ameba::Cli
|
|||
end
|
||||
|
||||
describe ".parse_args" do
|
||||
%w(-s --silent).each do |f|
|
||||
it "accepts #{f} flag" do
|
||||
c = Cli.parse_args [f]
|
||||
%w(-s --silent).each do |flag|
|
||||
it "accepts #{flag} flag" do
|
||||
c = Cli.parse_args [flag]
|
||||
c.formatter.should eq :silent
|
||||
end
|
||||
end
|
||||
|
||||
%w(-c --config).each do |f|
|
||||
it "accepts #{f} flag" do
|
||||
c = Cli.parse_args [f, "config.yml"]
|
||||
%w(-c --config).each do |flag|
|
||||
it "accepts #{flag} flag" do
|
||||
c = Cli.parse_args [flag, "config.yml"]
|
||||
c.config.should eq Path["config.yml"]
|
||||
end
|
||||
end
|
||||
|
||||
%w(-f --format).each do |f|
|
||||
it "accepts #{f} flag" do
|
||||
c = Cli.parse_args [f, "my-formatter"]
|
||||
%w(-f --format).each do |flag|
|
||||
it "accepts #{flag} flag" do
|
||||
c = Cli.parse_args [flag, "my-formatter"]
|
||||
c.formatter.should eq "my-formatter"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue