test/test_sibit.rb in sibit-0.21.3 vs test/test_sibit.rb in sibit-0.21.4
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-# Copyright (c) 2019-2020 Yegor Bugayenko
+# Copyright (c) 2019-2021 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
@@ -30,11 +30,11 @@
require_relative '../lib/sibit/firstof'
require_relative '../lib/sibit/bestof'
# Sibit.
# Author:: Yegor Bugayenko (yegor256@gmail.com)
-# Copyright:: Copyright (c) 2019-2020 Yegor Bugayenko
+# Copyright:: Copyright (c) 2019-2021 Yegor Bugayenko
# License:: MIT
class TestSibit < Minitest::Test
def test_loads_fees
stub_request(
:get, 'https://bitcoinfees.earn.com/api/v1/fees/recommended'
@@ -194,10 +194,11 @@
]
}
end
sibit = Sibit.new(api: api)
found = false
- tail = sibit.scan('head') do |addr, tx, satoshi|
+ start = '00000000000000000008df8a6e1b61d1136803ac9791b8725235c9f780b4ed71'
+ tail = sibit.scan(start) do |addr, tx, satoshi|
assert_equal(123, satoshi)
assert_equal('addr', addr)
assert_equal('hash:0', tx)
found = true
end