Sha256: 131ec01e118c79d02a32da558340eaf683b9617dad12f449f4b1de0a0d18a2d9

Contents?: true

Size: 524 Bytes

Versions: 10

Compression:

Stored size: 524 Bytes

Contents

require 'helper'

class TestIntegration < Test::Unit::TestCase
  def setup
    ExvoAuth::Config.host          = "https://staging.auth.exvo.com"
    ExvoAuth::Config.client_id     = "foo"
    ExvoAuth::Config.client_secret = "bar"
  end
  
  test "integration with staging.auth.exvo.com" do
    c = ExvoAuth::Autonomous::Consumer.new(:provider_id => "bar")
    authorization = c.send(:authorization)
    assert_true authorization["access_token"].size > 0
    assert_equal "https://bar/api", authorization["url"]
  end
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
exvo-auth-0.7.10 test/test_integration.rb
exvo-auth-0.7.9 test/test_integration.rb
exvo-auth-0.7.8 test/test_integration.rb
exvo-auth-0.7.7 test/test_integration.rb
exvo-auth-0.7.6 test/test_integration.rb
exvo-auth-0.7.5 test/test_integration.rb
exvo-auth-0.7.4 test/test_integration.rb
exvo-auth-0.7.3 test/test_integration.rb
exvo-auth-0.7.2 test/test_integration.rb
exvo-auth-0.7.1 test/test_integration.rb