Sha256: 8692a762620aa3400733aba87dbab641a8e9c1816e7aff905fdb38f19f2098ca
Contents?: true
Size: 840 Bytes
Versions: 6
Compression:
Stored size: 840 Bytes
Contents
require 'test_helper' class TwitterTest < Test::Unit::TestCase should "have firehose method for public timeline" do stub_get('http://twitter.com:80/statuses/public_timeline.json', 'firehose.json') hose = Twitter.firehose hose.size.should == 20 first = hose.first first.text.should == '#torrents Ultimativer Flirt Guide - In 10 Minuten jede Frau erobern: Ultimativer Flirt Guide - In 10 Mi.. http://tinyurl.com/d3okh4' first.user.name.should == 'P2P Torrents' end should "have user method for unauthenticated calls to get a user's information" do stub_get('http://twitter.com:80/users/show/jnunemaker.json', 'user.json') user = Twitter.user('jnunemaker') user.name.should == 'John Nunemaker' user.description.should == 'Loves his wife, ruby, notre dame football and iu basketball' end end
Version data entries
6 entries across 6 versions & 3 rubygems