test/zold/test_wts.rb in zold-ruby-sdk-0.2.2 vs test/zold/test_wts.rb in zold-ruby-sdk-0.2.3

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -# Copyright (c) 2018-2019 Yegor Bugayenko +# Copyright (c) 2018-2020 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -25,11 +25,11 @@ require 'webmock/minitest' require_relative '../../lib/zold/wts' # WTS test. # Author:: Yegor Bugayenko (yegor256@gmail.com) -# Copyright:: Copyright (c) 2018-2019 Yegor Bugayenko +# Copyright:: Copyright (c) 2018-2020 Yegor Bugayenko # License:: MIT class TestWTS < Minitest::Test KEY = '0000000000000000-b416493aefae4ca487c4739050aaec15' def test_pulls @@ -50,9 +50,14 @@ def test_retrieves_wallet_id WebMock.allow_net_connect! wts = Zold::WTS.new(KEY, log: Loog::VERBOSE) assert(!wts.id.nil?) + end + + def test_retrieves_fake_usd_rate + wts = Zold::WTS::Fake.new + assert(!wts.usd_rate.nil?) end def test_retrieves_balance WebMock.allow_net_connect! wts = Zold::WTS.new(KEY, log: Loog::VERBOSE)