Sha256: 9f6cc2a2bbaeedd4f1797d1e938db5813390cf3b0714aad2000da15c3e5f3e41

Contents?: true

Size: 777 Bytes

Versions: 3

Compression:

Stored size: 777 Bytes

Contents

require 'test_helper'

class TestPinSetup < MiniTest::Unit::TestCase
  def test_setting_public_key
    oldpublic = PinPayment.public_key
    assert_equal nil, PinPayment.public_key
    PinPayment.public_key = 'foo'
    assert_equal 'foo', PinPayment.public_key
    PinPayment.public_key = oldpublic
  end

  def test_setting_secret_key
    oldsecret = PinPayment.secret_key
    assert_equal nil, PinPayment.secret_key
    PinPayment.secret_key = 'foo'
    assert_equal 'foo', PinPayment.secret_key
    PinPayment.secret_key = oldsecret
  end

  def test_api_url
    oldurl = PinPayment.api_url
    assert_equal 'https://test-api.pin.net.au', PinPayment.api_url
    PinPayment.api_url = 'foo'
    assert_equal 'foo', PinPayment.api_url
    PinPayment.api_url = oldurl
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pin_payment-0.5.1 test/test_pin_setup.rb
pin_payment-0.5.0 test/test_pin_setup.rb
pin_payment-0.4.0 test/test_pin_setup.rb