Skip to content

Commit

Permalink
Modified spec to use kind_of matcher instead of block passed to with().
Browse files Browse the repository at this point in the history
  • Loading branch information
ymendel committed Jun 28, 2008
1 parent bfec93a commit 2dc4f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/stream_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@

it 'should extend the event array' do
@args = @args_hash.values_at(*@callback_arg_order)
@callback.expects(:call).with { |events| events.is_a?(EventArray) }
@callback.expects(:call).with(kind_of(EventArray))
@proc.call(*@args)
end

Expand Down

0 comments on commit 2dc4f9c

Please sign in to comment.