Sha256: ce4cfa48afc7c15568f9d499c9f34dc6c8db64b63e44465a7c64f4627e853097

Contents?: true

Size: 522 Bytes

Versions: 5

Compression:

Stored size: 522 Bytes

Contents

require 'helper'

class TestFacebook < Test::Unit::TestCase
  def setup
    @client = Whatser::Client.new(:oauth_token => '1234')
  end
  
  def test_key
    assert_equal 'facebook', Whatser::Facebook.new.key
  end
  
  def test_connection_url
    expected = "#{@client.api_uri}/oauth/services/facebook/authorize?redirect_uri=&client_id="
    assert_equal expected, @client.facebook.connection_url
  end
  
  def test_get_friends
    assert @client.facebook.get_friends(:opt => 'test').is_a?(Whatser::Response)
  end  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whatser-0.6.1 test/test_facebook.rb
whatser-0.6.0 test/test_facebook.rb
whatser-0.5.0 test/test_facebook.rb
whatser-0.4.0 test/test_facebook.rb
whatser-0.3.2 test/test_facebook.rb