test/test_tax.rb in zold-0.16.9 vs test/test_tax.rb in zold-0.16.10

- old
+ new

@@ -19,21 +19,21 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. require 'minitest/autorun' +require 'zold/score' require 'time' require_relative 'test__helper' require_relative 'fake_home' require_relative '../lib/zold/id' require_relative '../lib/zold/txn' require_relative '../lib/zold/wallet' require_relative '../lib/zold/tax' require_relative '../lib/zold/key' require_relative '../lib/zold/amount' require_relative '../lib/zold/prefixes' -require_relative '../lib/zold/score' # Tax test. # Author:: Yegor Bugayenko (yegor256@gmail.com) # Copyright:: Copyright (c) 2018 Yegor Bugayenko # License:: MIT @@ -71,11 +71,11 @@ 'NOPREFIX', Zold::Id.new, '-' ) ) end score = Zold::Score.new( - time: Time.now, host: 'localhost', port: 80, invoice: 'NOPREFIX@cccccccccccccccc', + host: 'localhost', port: 80, invoice: 'NOPREFIX@cccccccccccccccc', suffixes: %w[A B C D E F G H I J K L M N O P Q R S T U V] ) tax = Zold::Tax.new(wallet) debt = tax.debt txn = tax.pay(Zold::Key.new(file: 'fixtures/id_rsa'), score) @@ -124,10 +124,10 @@ ) target = home.create_wallet invoice = "#{Zold::Prefixes.new(target).create}@#{target.id}" tax = Zold::Tax.new(wallet) score = Zold::Score.new( - time: Time.now, host: 'localhost', port: 80, invoice: invoice, + host: 'localhost', port: 80, invoice: invoice, suffixes: %w[A B C D E F G H I J K L M N O P Q R S T U V] ) tax.pay(Zold::Key.new(file: 'fixtures/id_rsa'), score) assert(tax.exists?(tax.details(score))) assert(!tax.exists?('-'))