Sha256: 4017d0b186e03c6aae374367d4b9d2217a9243ff5bf437404d4151833711468f

Contents?: true

Size: 767 Bytes

Versions: 20

Compression:

Stored size: 767 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class TwitterCounterTest < Test::Unit::TestCase
  include Twitterland
  
  context "Getting twitter counter numbers" do
    should "work" do
      stub_get 'http://twittercounter.com:80/api/?username=jnunemaker&output=json&results=365', 'twitter_counter.json'
      counter_stats = Twitterland::TwitterCounter.show('jnunemaker')
      
      counter_stats.user_name.should == 'jnunemaker'
      counter_stats.followers_yesterday.should == 1481
      counter_stats.tomorrow.should == 1485
      counter_stats.next_month.should == 1572
      counter_stats.rank.should == 33172
      
      counter_stats.totals.size.should == 238
      counter_stats.totals.find{|total| total == '2008-11-07'} == 630
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
squeejee-twitterland-0.0.1 test/twitterland/twitter_counter_test.rb
squeejee-twitterland-0.0.2 test/twitterland/twitter_counter_test.rb
squeejee-twitterland-0.1.1 test/twitterland/twitter_counter_test.rb
squeejee-twitterland-0.2.0 test/twitterland/twitter_counter_test.rb
squeejee-twitterland-0.2.1 test/twitterland/twitter_counter_test.rb
twitterland-0.4.6 test/twitterland/twitter_counter_test.rb
twitterland-0.4.5 test/twitterland/twitter_counter_test.rb
twitterland-0.4.4 test/twitterland/twitter_counter_test.rb
twitterland-0.4.3 test/twitterland/twitter_counter_test.rb
twitterland-0.4.2 test/twitterland/twitter_counter_test.rb
twitterland-0.4.1 test/twitterland/twitter_counter_test.rb
twitterland-0.4.0 test/twitterland/twitter_counter_test.rb
twitterland-0.3.0 test/twitterland/twitter_counter_test.rb
twitterland-0.1.0 test/twitterland/twitter_counter_test.rb
twitterland-0.1.1 test/twitterland/twitter_counter_test.rb
twitterland-0.2.0 test/twitterland/twitter_counter_test.rb
twitterland-0.2.1 test/twitterland/twitter_counter_test.rb
twitterland-0.0.1 test/twitterland/twitter_counter_test.rb
twitterland-0.0.2 test/twitterland/twitter_counter_test.rb
twitterland-0.0.3 test/twitterland/twitter_counter_test.rb