Skip to content

Commit 06283fd

Browse files
Remove and_return from negative receive assertion.
1 parent 71a892b commit 06283fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/shell/basic_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def shell
2020
it "prints a message to the user and gets the response" do
2121
expect($stdout).to receive(:print).with("Should I overwrite it? ")
2222
expect($stdin).to receive(:gets).and_return('Sure')
23-
expect($stdin).to_not receive(:noecho).and_return('Sure')
23+
expect($stdin).to_not receive(:noecho)
2424
expect(shell.ask("Should I overwrite it?")).to eq("Sure")
2525
end
2626

0 commit comments

Comments
 (0)