Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix specs on travis-ci

  • Loading branch information...
commit ec38f532bb1e0799685ef5a81532d4552bca1189 1 parent 665813f
Maher Sallam authored January 27, 2012

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  spec/guard_spec.rb
5  spec/guard_spec.rb
@@ -61,7 +61,10 @@
61 61
     end
62 62
 
63 63
     context "when the passed guard can't be found" do
64  
-      before { File.should_receive(:exist?).and_return false }
  64
+      before do
  65
+        ::Guard.should_receive(:get_guard_class).and_return nil
  66
+        File.should_receive(:exist?).and_return false
  67
+      end
65 68
 
66 69
       it "notifies the user about the problem" do
67 70
         ::Guard::UI.should_receive(:error).with(

0 notes on commit ec38f53

Please sign in to comment.
Something went wrong with that request. Please try again.