We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71a892b commit 06283fdCopy full SHA for 06283fd
spec/shell/basic_spec.rb
@@ -20,7 +20,7 @@ def shell
20
it "prints a message to the user and gets the response" do
21
expect($stdout).to receive(:print).with("Should I overwrite it? ")
22
expect($stdin).to receive(:gets).and_return('Sure')
23
- expect($stdin).to_not receive(:noecho).and_return('Sure')
+ expect($stdin).to_not receive(:noecho)
24
expect(shell.ask("Should I overwrite it?")).to eq("Sure")
25
end
26
0 commit comments