File tree Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 1.7.1] - 2021-07-16
9+
10+ ### Added
11+
12+ - Add support for Ethereum estimates
813## [ 1.7.0] - 2021-07-14
914
1015### Changed
Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- patch_ruby (1.7.0 )
4+ patch_ruby (1.7.1 )
55 json (~> 2.1 , >= 2.1.0 )
66 typhoeus (~> 1.0 , >= 1.0.1 )
77
Original file line number Diff line number Diff line change 1111=end
1212
1313module Patch
14- VERSION = '1.7.0 '
14+ VERSION = '1.7.1 '
1515end
Original file line number Diff line number Diff line change 9999 expect ( bitcoin_estimate . data . type ) . to eq 'bitcoin'
100100 expect ( bitcoin_estimate . data . mass_g ) . to be < bitcoin_estimate_2 . data . mass_g
101101 end
102+
103+ it 'supports creating ethereum estimates with a gas amount' do
104+ ethereum_estimate = Patch ::Estimate . create_ethereum_estimate (
105+ gas_used : 100
106+ )
107+
108+ ethereum_estimate_2 = Patch ::Estimate . create_ethereum_estimate (
109+ gas_used : 1000
110+ )
111+
112+ expect ( ethereum_estimate . data . type ) . to eq 'ethereum'
113+ expect ( ethereum_estimate . data . mass_g ) . to be < ethereum_estimate_2 . data . mass_g
114+ end
115+
116+ it 'supports creating ethereum estimates with partial information' do
117+ ethereum_estimate = Patch ::Estimate . create_ethereum_estimate ( { create_order : false } )
118+
119+ expect ( ethereum_estimate . data . type ) . to eq 'ethereum'
120+ expect ( ethereum_estimate . data . mass_g ) . to be >= 2_000
121+ end
102122end
You can’t perform that action at this time.
0 commit comments