Skip to content

Commit

Permalink
Remove and_return from negative receive assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
eventualbuddha committed Aug 18, 2013
1 parent 71a892b commit 06283fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/shell/basic_spec.rb
Expand Up @@ -20,7 +20,7 @@ def shell
it "prints a message to the user and gets the response" do
expect($stdout).to receive(:print).with("Should I overwrite it? ")
expect($stdin).to receive(:gets).and_return('Sure')
expect($stdin).to_not receive(:noecho).and_return('Sure')
expect($stdin).to_not receive(:noecho)
expect(shell.ask("Should I overwrite it?")).to eq("Sure")
end

Expand Down

0 comments on commit 06283fd

Please sign in to comment.