From 2dc4f9cfe3204463cbb0022bf0e993a70353860a Mon Sep 17 00:00:00 2001 From: Yossef Mendelssohn Date: Sat, 28 Jun 2008 11:58:57 -0500 Subject: [PATCH] Modified spec to use kind_of matcher instead of block passed to with(). --- spec/stream_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/stream_spec.rb b/spec/stream_spec.rb index 7a26c42..5dd5487 100644 --- a/spec/stream_spec.rb +++ b/spec/stream_spec.rb @@ -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