Sha256: 3c3c7b8d8d075c1d9a3a9a4fc5190bbb46e1414fd34c0a01968b660d8b93c9ff

Contents?: true

Size: 461 Bytes

Versions: 10

Compression:

Stored size: 461 Bytes

Contents

require 'test_helper'

class RemoteRedactReceiverTest < Test::Unit::TestCase
  def setup
    @environment = Spreedly::Environment.new(remote_test_environment_key, remote_test_access_secret)
  end

  def test_successful_redact
    receiver = @environment.add_receiver(:test, 'https://sandbox.usaepay.com')

    transaction = @environment.redact_receiver(receiver.token)

    assert transaction.succeeded?
    assert_equal 'redacted', transaction.state
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spreedly-2.0.28 test/remote/remote_redact_receiver_test.rb
spreedly-2.0.27 test/remote/remote_redact_receiver_test.rb
spreedly-2.0.26 test/remote/remote_redact_receiver_test.rb
spreedly-2.0.25 test/remote/remote_redact_receiver_test.rb
spreedly-2.0.24 test/remote/remote_redact_receiver_test.rb
spreedly-2.0.23 test/remote/remote_redact_receiver_test.rb
spreedly-2.0.22 test/remote/remote_redact_receiver_test.rb
spreedly-2.0.21 test/remote/remote_redact_receiver_test.rb
spreedly-2.0.20 test/remote/remote_redact_receiver_test.rb
spreedly-2.0.19 test/remote/remote_redact_receiver_test.rb