Sha256: 38514fd99af7f28323e3a5879f9bcc435035a98fcec1160b38be505aa7ee0a8b
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
require 'test_helper' require 'unit/response_stubs/add_gateway_stubs' class AddGatewayTest < Test::Unit::TestCase include AddGatewayStubs def setup @environment = Spreedly::Environment.new("key", "secret") end def test_add_test_gateway @environment.stubs(:raw_ssl_request).returns(successful_add_test_gateway_response) gateway = @environment.add_gateway(:test) assert_equal "4dFb93AiRDEJ18MS9xDGMyu22uO", gateway.token assert_equal "test", gateway.gateway_type assert_equal "retained", gateway.state assert_equal "Test", gateway.name end # TODO # Tests coming for characteristics, payment_methods, and gateway_specific_fields. # We'll also soon handle adding other types of gateways. end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spreedly-2.0.0 | test/unit/add_gateway_test.rb |