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