Skip to content

Commit

Permalink
fix broken spec (let block name conflict)
Browse files Browse the repository at this point in the history
  • Loading branch information
e2 committed May 18, 2016
1 parent c8b1b51 commit 7f89a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/listen/listener_spec.rb
Expand Up @@ -85,8 +85,8 @@

context 'with a block' do
let(:myblock) { instance_double(Proc) }
let(:block) { proc { myblock.call } }
subject { described_class.new('dir1', &block) }
let(:real_block) { proc { myblock.call } }
subject { described_class.new('dir1', &real_block) }

it 'passes the block to the event processor' do
allow(Event::Config).to receive(:new) do |*_args, &some_block|
Expand Down

0 comments on commit 7f89a65

Please sign in to comment.