Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stub the interactor on the subject.

  • Loading branch information...
commit 248bfd4e0db04c60e0054783159325f65e920307 1 parent 7b553f0
@netzpirat netzpirat authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/guard_spec.rb
View
2  spec/guard_spec.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.