Sha256: d0d997e03438c7d58fd3c5c5fd43fe8c15c1e68840546ab3bdf86fdb211e37b9

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

require 'test_helper'

class Bifubao::ServiceTest < Test::Unit::TestCase
  def test_create_external
    options = {
        external_order_id: SecureRandom.uuid,
        price_cny: 1,
        display_name: 'foo'
    }

    assert_nothing_raised do
      Bifubao::Service.create_external(options)
    end
  end

  def test_create_external_with_cny_and_btc
    options = {
        external_order_id: SecureRandom.uuid,
        price_cny: 1,
        price_btc: 1,
        display_name: 'foo'
    }

    assert_raise RuntimeError do
      Bifubao::Service.create_external(options)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bifubao-0.0.1 test/alipay/service_test.rb