Skip to content

Commit

Permalink
Fix specs on travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Maher4Ever committed Jan 27, 2012
1 parent 665813f commit ec38f53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/guard_spec.rb
Expand Up @@ -61,7 +61,10 @@
end

context "when the passed guard can't be found" do
before { File.should_receive(:exist?).and_return false }
before do
::Guard.should_receive(:get_guard_class).and_return nil
File.should_receive(:exist?).and_return false
end

it "notifies the user about the problem" do
::Guard::UI.should_receive(:error).with(
Expand Down

0 comments on commit ec38f53

Please sign in to comment.