From 06283fd187de7d5ef569c60f8a514e0bb47868be Mon Sep 17 00:00:00 2001 From: Brian Donovan Date: Sun, 18 Aug 2013 09:52:34 -0700 Subject: [PATCH] Remove and_return from negative receive assertion. --- spec/shell/basic_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/shell/basic_spec.rb b/spec/shell/basic_spec.rb index 9027bdbf4..68c2a75fa 100644 --- a/spec/shell/basic_spec.rb +++ b/spec/shell/basic_spec.rb @@ -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