Sha256: 96dcb2eb22e10df779ef59a7793f959a3b864a05459e8abf10972b9f1f881207

Contents?: true

Size: 488 Bytes

Versions: 5

Compression:

Stored size: 488 Bytes

Contents

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

class ZutualTest < Test::Unit::TestCase
  include Twitterland
  
  context "Hitting the Zutual API" do
    should "return a list of topic matches between users" do
      stub_get 'http://api.zutual.com/v/1/twitter/match/pengwynn+adamstac.json', 'zutual.json'
      matches = Twitterland::Zutual.match('pengwynn', 'adamstac')
      matches.first.topic.should == 'google'
      matches.first.strength.should == 87
      
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twitterland-0.4.6 test/twitterland/zutual_test.rb
twitterland-0.4.5 test/twitterland/zutual_test.rb
twitterland-0.4.4 test/twitterland/zutual_test.rb
twitterland-0.4.3 test/twitterland/zutual_test.rb
twitterland-0.4.2 test/twitterland/zutual_test.rb