Permalink
Browse files

Stub the interactor on the subject.

  • Loading branch information...
1 parent 7b553f0 commit 248bfd4e0db04c60e0054783159325f65e920307 @netzpirat netzpirat committed Jun 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/guard_spec.rb
View
@@ -584,7 +584,7 @@ class Guard::FooBaz < Guard::Guard; end
describe '.within_preserved_state' do
subject { ::Guard.setup }
- before { Guard.interactor = ::Guard::Interactor.new }
+ before { subject.interactor = stub('interactor') }
it 'disables the interactor before running the block and then re-enables it when done' do
subject.interactor.should_receive(:stop)

0 comments on commit 248bfd4

Please sign in to comment.