spec/option_spec.rb in mercenary-0.3.4 vs spec/option_spec.rb in mercenary-0.3.5

- old
+ new

@@ -26,12 +26,12 @@ expect(option.for_option_parser).to eql([switches, description].flatten) end it "compares itself with other options well" do new_option = described_class.new(config_key, ['-l', '--largo', description]) - expect(option.eql?(new_option)).to be_true - expect(option.hash.eql?(new_option.hash)).to be_true + expect(option.eql?(new_option)).to be(true) + expect(option.hash.eql?(new_option.hash)).to be(true) end it "has a custom #hash" do expect(option.hash.to_s).to match(/\d+/) end @@ -70,10 +70,10 @@ context "without a description" do let(:description) { nil } it "knows there is no description" do - expect(option.description).to be_nil + expect(option.description).to be(nil) end it "knows both inputs are switches" do expect(option.switches).to eql(switches) end