Permalink
Browse files

Fix specs on travis-ci

  • Loading branch information...
1 parent 665813f commit ec38f532bb1e0799685ef5a81532d4552bca1189 @Maher4Ever committed Jan 27, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 spec/guard_spec.rb
View
5 spec/guard_spec.rb
@@ -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(

0 comments on commit ec38f53

Please sign in to comment.