Skip to content

Commit

Permalink
Stub the interactor on the subject.
Browse files Browse the repository at this point in the history
  • Loading branch information
netzpirat committed Jun 18, 2012
1 parent 7b553f0 commit 248bfd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/guard_spec.rb
Expand Up @@ -584,7 +584,7 @@ class Guard::FooBaz < Guard::Guard; end


describe '.within_preserved_state' do describe '.within_preserved_state' do
subject { ::Guard.setup } 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 it 'disables the interactor before running the block and then re-enables it when done' do
subject.interactor.should_receive(:stop) subject.interactor.should_receive(:stop)
Expand Down

0 comments on commit 248bfd4

Please sign in to comment.