Sha256: 5a0adb1ae385cbec77240efdef260c3603c4cf8cf2fb22b1da7eea5790ece8d8
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
require File.expand_path '../test_helper.rb', __FILE__ class CounterTest < Minitest::Test def setup url = 'http://subimage.com' @sus = SocialUrlStats::Counter.new(url) end def test_fb_shares VCR.use_cassette('social_url_stats') do count = @sus.fb_shares assert_kind_of Integer, count assert_equal 10, count end end def test_fb_likes VCR.use_cassette('social_url_stats') do count = @sus.fb_likes assert_kind_of Integer, count assert_equal 0, count end end def test_tweets VCR.use_cassette('social_url_stats') do count = @sus.tweets assert_kind_of Integer, count assert_equal 7, count end end def test_pins VCR.use_cassette('social_url_stats') do count = @sus.pins assert_kind_of Integer, count assert_equal 0, count end end def test_linkedin_shares VCR.use_cassette('social_url_stats') do count = @sus.linkedin_shares assert_kind_of Integer, count assert_equal 3, count end end def test_stumbles VCR.use_cassette('social_url_stats') do count = @sus.stumbles assert_kind_of Integer, count assert_equal 130, count end end def test_gplus_ones VCR.use_cassette('social_url_stats') do count = @sus.gplus_ones assert_kind_of Integer, count assert_equal 1, count end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
social_url_stats-0.0.1 | test/counter_test.rb |