Fixed Interactor spec

This commit is contained in:
Thibaud Guillaume-Gentil 2011-05-06 21:14:39 +02:00
parent d6d9dd9e75
commit 869ed2fa28

View File

@ -3,8 +3,10 @@ require 'spec_helper'
describe Guard::Interactor do describe Guard::Interactor do
subject { Guard::Interactor } subject { Guard::Interactor }
let(:guard) { mock "guard" } let(:guard) { mock "guard" }
before :each do before :each do
Guard.stub!(:guards).and_return([guard]) Guard.stub!(:guards).and_return([guard])
Guard.stub!(:options).and_return({})
Guard.stub!(:listener).and_return(mock(:start => nil, :stop => nil)) Guard.stub!(:listener).and_return(mock(:start => nil, :stop => nil))
end end