Sha256: 3cde687410433843983100dd81f717762dcd1aaa3c4bae672ad0bea4630985d6

Contents?: true

Size: 518 Bytes

Versions: 7

Compression:

Stored size: 518 Bytes

Contents

require 'spec_helper'

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.should be_kind_of(TweetStream::User)
    @status.user.screen_name.should == 'bob'
  end

  it 'should override the #id method for itself and the user' do
    @status = TweetStream::Status.new({:id => 123, :user => {:id => 345}})
    @status.id.should == 123
    @status.user.id.should == 345
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tweetstream-1.1.5 spec/tweetstream/status_spec.rb
tweetstream-1.1.4 spec/tweetstream/status_spec.rb
tweetstream-1.1.3 spec/tweetstream/status_spec.rb
tweetstream-1.1.2 spec/tweetstream/status_spec.rb
tweetstream-1.1.1 spec/tweetstream/status_spec.rb
tweetstream-1.1.0 spec/tweetstream/status_spec.rb
tweetstream-1.1.0.rc2 spec/tweetstream/status_spec.rb