mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fix 'possibly useless use of == in void context' warnings
This commit is contained in:
parent
dadddae30c
commit
04dc46f302
1 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ describe Pry::Hooks do
|
||||||
# irrelevant
|
# irrelevant
|
||||||
end
|
end
|
||||||
end.parse_options(argv)
|
end.parse_options(argv)
|
||||||
argv.include?('-v').should == false
|
argv.include?('-v').should eq false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ describe Pry::Hooks do
|
||||||
end
|
end
|
||||||
end.parse_options(["--optiontest"])
|
end.parse_options(["--optiontest"])
|
||||||
|
|
||||||
run.should == true
|
run.should eq true
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should be able to add multiple options" do
|
it "should be able to add multiple options" do
|
||||||
|
@ -64,7 +64,7 @@ describe Pry::Hooks do
|
||||||
run = true if opts.present?(:optiontest)
|
run = true if opts.present?(:optiontest)
|
||||||
end.parse_options(["--optiontest"])
|
end.parse_options(["--optiontest"])
|
||||||
|
|
||||||
run.should == true
|
run.should eq true
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should be able to process multiple options" do
|
it "should be able to process multiple options" do
|
||||||
|
@ -80,8 +80,8 @@ describe Pry::Hooks do
|
||||||
run2 = true if opts.present?(:optiontest2)
|
run2 = true if opts.present?(:optiontest2)
|
||||||
end.parse_options(["--optiontest", "--optiontest2"])
|
end.parse_options(["--optiontest", "--optiontest2"])
|
||||||
|
|
||||||
run.should == true
|
run.should eq true
|
||||||
run2.should == true
|
run2.should eq true
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue