Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added more tests for on_error

  • Loading branch information...
commit 3a8fb4ce5e329e2b24629e536b425c150c4f87a1 1 parent 7631530
@stve stve authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 spec/tweetstream/client_spec.rb
View
11 spec/tweetstream/client_spec.rb
@@ -145,6 +145,17 @@
m.should == 'Uh oh'
end.track('abc')
end
+
+ it 'should return the block when defined' do
+ @client.on_error do |m|
+ puts 'ohai'
+ end
+ @client.on_error.should be_kind_of(Proc)
+ end
+
+ it 'should return nil when undefined' do
+ @client.on_error.should be_nil
+ end
end
describe '#on_max_reconnects' do

0 comments on commit 3a8fb4c

Please sign in to comment.
Something went wrong with that request. Please try again.