Sha256: 2193308dc769ce882c63f773c99c7d05bdbde10fcb1552093db0e713c707ba88
Contents?: true
Size: 780 Bytes
Versions: 11
Compression:
Stored size: 780 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require example('twitter') describe Statuses do describe Status do before do @statuses = Statuses.from_xml(xml_for('twitter')).statuses end it "should extract text" do @statuses.each {|status| status.text.should_not be_empty } end it "should extract source" do @statuses.each {|status| status.source.should_not be_empty } end describe User do before do @users = @statuses.map(&:user) end it "should extract name" do @users.each {|user| user.name.should == "John Nunemaker" } end it "should extract screen_name" do @users.each {|user| user.screen_name.should == "jnunemaker" } end end end end
Version data entries
11 entries across 11 versions & 3 rubygems