Sha256: f2d993499754d6b126b04fd3b036b7e6fe0cd6009f3c6d8267188c2a280155f2
Contents?: true
Size: 771 Bytes
Versions: 1
Compression:
Stored size: 771 Bytes
Contents
require File.join(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Empact-roxml-2.4.2 | spec/examples/twitter_spec.rb |