Sha256: c81d749429a229d84b2c74d1900aaa3168c6c5947f6f33232c0124cea8784ecb

Contents?: true

Size: 533 Bytes

Versions: 5

Compression:

Stored size: 533 Bytes

Contents

require 'helper'

class TestIntegration < Test::Unit::TestCase
  def setup
    Exvo::Helpers.auth_host          = "auth.exvo.co"
    Exvo::Helpers.auth_client_id     = "foo"
    Exvo::Helpers.auth_client_secret = "bar"
    Exvo::Helpers.auth_require_ssl   = true
  end

  test "integration with auth.exvo.co" do
    c = ExvoAuth::Autonomous::Consumer.new(:app_id => "bar")
    authorization = c.send(:authorization)
    assert authorization["access_token"].size > 0
    assert_equal "https://bar/api", authorization["url"]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
exvo_auth-0.16.4 test/test_integration.rb
exvo_auth-0.16.3 test/test_integration.rb
exvo_auth-0.16.2 test/test_integration.rb
exvo_auth-0.16.1 test/test_integration.rb
exvo_auth-0.16.0 test/test_integration.rb