Sha256: 18e778f448e99328fcabb3b9037c2886e7b39e9d231832e717a2dad0701dc7ee
Contents?: true
Size: 845 Bytes
Versions: 27
Compression:
Stored size: 845 Bytes
Contents
require 'test_helper' class RemoteFindGatewayTest < Test::Unit::TestCase def setup @environment = Spreedly::Environment.new(remote_test_environment_key, remote_test_access_secret) end def test_invalid_login assert_invalid_login do |environment| environment.find_gateway("SomeToken") end end def test_gateway_not_found assert_raise_with_message(Spreedly::NotFoundError, "Unable to find the specified gateway.") do @environment.find_gateway("SomeUnknownToken") end end def test_successfully_find_gateway gateway = @environment.add_gateway(:test) found = @environment.find_gateway(gateway.token) assert_equal(gateway.token, found.token) assert_equal("Spreedly Test", gateway.name) assert_equal("retained", gateway.state) assert_equal({}, gateway.credentials) end end
Version data entries
27 entries across 27 versions & 1 rubygems