Browse files

update specs to follow 'should be_kind_of' convention

  • Loading branch information...
1 parent 8e3fe75 commit e53cf5293b5b74644c6fbb069fad6f8d5f718a9b @stve stve committed Sep 24, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 spec/tweetstream/client_spec.rb
  2. +2 −2 spec/tweetstream/direct_message_spec.rb
  3. +1 −1 spec/tweetstream/status_spec.rb
View
2 spec/tweetstream/client_spec.rb
@@ -12,7 +12,7 @@
describe '#build_uri' do
it 'should return a URI' do
- @client.send(:build_uri, '').is_a?(URI).should be_true
+ @client.send(:build_uri, '').should be_kind_of(URI)
end
it 'should have the specified path with the version prefix and a json extension' do
View
4 spec/tweetstream/direct_message_spec.rb
@@ -3,13 +3,13 @@
describe TweetStream::DirectMessage do
it 'modifies the :sender key into a TweetStream::User object called #user' do
@status = TweetStream::DirectMessage.new({:sender => {:screen_name => 'bob'}})
- @status.user.is_a?(TweetStream::User).should be_true
+ @status.user.should be_kind_of(TweetStream::User)
@status.user.screen_name.should == 'bob'
end
it 'transforms the sender into a TweetStream::User object called #sender' do
@status = TweetStream::DirectMessage.new({:sender => {:screen_name => 'bob'}})
- @status.sender.is_a?(TweetStream::User).should be_true
+ @status.sender.should be_kind_of(TweetStream::User)
@status.sender.screen_name.should == 'bob'
end
View
2 spec/tweetstream/status_spec.rb
@@ -3,7 +3,7 @@
describe TweetStream::Status do
it 'should modify the :user key into a TweetStream::User object' do
@status = TweetStream::Status.new({:user => {:screen_name => 'bob'}})
- @status.user.is_a?(TweetStream::User).should be_true
+ @status.user.should be_kind_of(TweetStream::User)
@status.user.screen_name.should == 'bob'
end

0 comments on commit e53cf52

Please sign in to comment.