Sha256: b00162663a6c0bfba181a6a92c7b5235f2af1845b3ee9588d2be9ca3d9c7916a

Contents?: true

Size: 592 Bytes

Versions: 3

Compression:

Stored size: 592 Bytes

Contents

require 'helper'

class TestIntegration < Test::Unit::TestCase
  def setup
    ExvoAuth::Config.host          = "staging.auth.exvo.com"
    ExvoAuth::Config.client_id     = "foo"
    ExvoAuth::Config.client_secret = "bar"
    ExvoAuth::Config.debug         = true
    ExvoAuth::Config.require_ssl   = true
  end
  
  test "integration with staging.auth.exvo.com" do
    c = ExvoAuth::Autonomous::Consumer.new(:app_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

3 entries across 3 versions & 1 rubygems

Version Path
exvo-auth-0.14.1 test/test_integration.rb
exvo-auth-0.14.0 test/test_integration.rb
exvo-auth-0.13.0 test/test_integration.rb