Sha256: 66ee195b34971f9ef05e1fdb0ff2dc46c9448992ee955368cf6c66ca5fae2b7a
Contents?: true
Size: 764 Bytes
Versions: 2
Compression:
Stored size: 764 Bytes
Contents
require_relative './../spec_helper' require_relative './../../examples/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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
representable-0.0.1.alpha1 | spec/examples/twitter_spec.rb |
roxml-3.1.6 | spec/examples/twitter_spec.rb |