Sha256: a6f35e6f07b772a1635035f44dc177b04ccf091d35f9888e99f2092b7b588747

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

require "support"

class TestAccount < Omise::Test
  setup do
    @account = Omise::Account.retrieve
  end

  def test_that_we_can_retrieve_the_account
    assert_instance_of Omise::Account, @account
    assert_equal "/account", @account.location
  end

  def test_that_we_can_reload_the_account
    @account.attributes.taint
    @account.reload

    refute @account.attributes.tainted?
  end

  def test_that_we_can_update_the_account
    @account.update(zero_interest_installments: true)

    assert @account.zero_interest_installments
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omise-0.10.0 test/omise/test_account.rb