Sha256: 56b63d7096f674374277845131a3ee7754de99cda48b14cd5b7c7c0b0b099ec4
Contents?: true
Size: 548 Bytes
Versions: 8
Compression:
Stored size: 548 Bytes
Contents
require File.dirname(__FILE__) + '/../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.is_a?(TweetStream::User).should be_true @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
8 entries across 8 versions & 2 rubygems