spec/shell/basic_spec.rb in thor-0.14.0 vs spec/shell/basic_spec.rb in thor-0.14.1

- old
+ new

@@ -25,26 +25,26 @@ describe "#yes?" do it "asks the user and returns true if the user replies yes" do $stdout.should_receive(:print).with("Should I overwrite it? ") $stdin.should_receive(:gets).and_return('y') - shell.yes?("Should I overwrite it?").must be_true + shell.yes?("Should I overwrite it?").must === true $stdout.should_receive(:print).with("Should I overwrite it? ") $stdin.should_receive(:gets).and_return('n') - shell.yes?("Should I overwrite it?").must_not be_true + shell.yes?("Should I overwrite it?").must_not === true end end describe "#no?" do it "asks the user and returns true if the user replies no" do $stdout.should_receive(:print).with("Should I overwrite it? ") $stdin.should_receive(:gets).and_return('n') - shell.no?("Should I overwrite it?").must be_true + shell.no?("Should I overwrite it?").must === true $stdout.should_receive(:print).with("Should I overwrite it? ") $stdin.should_receive(:gets).and_return('Yes') - shell.no?("Should I overwrite it?").must be_false + shell.no?("Should I overwrite it?").must === false end end describe "#say" do it "prints a message to the user" do