From 6bc7f39944eb50d9d1f998564748fd48bf99cfab Mon Sep 17 00:00:00 2001 From: uu59 Date: Thu, 3 Jul 2014 14:56:23 +0900 Subject: [PATCH] Fix spec to follow behavior change --- spec/models/plugin_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/plugin_spec.rb b/spec/models/plugin_spec.rb index 6e556db..e9867b5 100644 --- a/spec/models/plugin_spec.rb +++ b/spec/models/plugin_spec.rb @@ -86,7 +86,7 @@ describe Plugin do end context "system command error" do - before { plugin.should_receive(:system).and_return(false) } + before { plugin.should_receive(:system).at_least(1).and_return(false) } subject { expect { plugin.install! } } it "raise GemError" do