Sha256: 66a50aa66aff29cfbc87d136c7614029f7ece9237e21d0f1461abee67875d234

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

require 'test_helper'

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pin_payment-0.3.0 test/test_pin_setup.rb
pin_payment-0.2.0 test/test_pin_setup.rb
pin_payment-0.1.0 test/test_pin_setup.rb
pin_payment-0.0.5 test/test_pin_setup.rb