Sha256: ee6f8090e76b06546a282f1ff73782b7441f2461de4a2e37b17beaf97495c1e7

Contents?: true

Size: 740 Bytes

Versions: 3

Compression:

Stored size: 740 Bytes

Contents

require File.expand_path('../../test_helper', __FILE__)

module Stripe
  class ThreeDSecureTest < Test::Unit::TestCase
    should "retrieve an existing 3D Secure object" do
      @mock.expects(:get).once.returns(make_response(make_three_d_secure))
      tds = Stripe::ThreeDSecure.retrieve("tdsrc_test")
      assert_equal "tdsrc_test", tds.id
    end

    should "create should return a new 3D Secure object" do
      @mock.expects(:post).once.returns(make_response(make_three_d_secure))
      tds = Stripe::ThreeDSecure.create(
        :card => "tok_test",
        :amount => 1500,
        :currency => "usd",
        :return_url => "https://example.org/3d-secure-result"
      )
      assert_equal "tdsrc_test", tds.id
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stripe-1.58.0 test/stripe/three_d_secure_test.rb
stripe-1.57.1 test/stripe/three_d_secure_test.rb
stripe-1.57.0 test/stripe/three_d_secure_test.rb