Sha256: 5333868b0a9dfd256b67dded9e11fe62015893460a0a87f25894e3f9c6c3ee0f
Contents?: true
Size: 773 Bytes
Versions: 1
Compression:
Stored size: 773 Bytes
Contents
require 'test_helper' class RemoteAddGatewayTest < Test::Unit::TestCase # TODO We'll add more to this soon. 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.add_gateway(:test) end end def test_non_existent_gateway_type assert_raise_with_message(Spreedly::TransactionCreationError, "The gateway_type parameter is invalid.") do @environment.add_gateway(:non_existent) end end def test_add_test_gateway gateway = @environment.add_gateway(:test) assert_equal "test", gateway.gateway_type assert_equal "retained", gateway.state assert_equal "Test", gateway.name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spreedly-2.0.0 | test/remote/remote_add_gateway_test.rb |