Sha256: e21e587a9199d889af80a7c87a5b0fe583c62572b4853b197458e4c0f4ac1a59

Contents?: true

Size: 652 Bytes

Versions: 20

Compression:

Stored size: 652 Bytes

Contents

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

class FollowCostTest < Test::Unit::TestCase
  include Twitterland
  
  context "Getting follow cost" do
    should "work" do
      stub_get 'http://followcost.com:80/jnunemaker.json', 'follow_cost.json'
      follow_cost = Twitterland::FollowCost.show('jnunemaker')
      
      follow_cost.username.should == 'jnunemaker'
      follow_cost.milliscobles_all_time.should == 240.75
      follow_cost.average_tweets_per_day.should == 5.10626
      follow_cost.at_reply_index.should == 49.0
      follow_cost.statuses_count.should == 5382
      follow_cost.political_index.should == 0.0
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

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