File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- patch_ruby (1.7.1 )
4
+ patch_ruby (1.8.0 )
5
5
json (~> 2.1 , >= 2.1.0 )
6
6
typhoeus (~> 1.0 , >= 1.0.1 )
7
7
Original file line number Diff line number Diff line change 100
100
expect ( bitcoin_estimate . data . mass_g ) . to be < bitcoin_estimate_2 . data . mass_g
101
101
end
102
102
103
+ it 'supports creating bitcoin estimates with a timestamp' do
104
+ bitcoin_estimate_1 = Patch ::Estimate . create_bitcoin_estimate (
105
+ timestamp : '2021-06-01T20:31:18.403Z'
106
+ )
107
+
108
+ bitcoin_estimate_2 = Patch ::Estimate . create_bitcoin_estimate (
109
+ timestamp : '2021-07-01T20:31:18.403Z'
110
+ )
111
+
112
+ expect ( bitcoin_estimate_1 . data . type ) . to eq 'bitcoin'
113
+ expect ( bitcoin_estimate_1 . data . mass_g ) . to be > bitcoin_estimate_2 . data . mass_g # Bitcoin was emitting less in July 2021 than in June
114
+ end
115
+
103
116
it 'supports creating ethereum estimates with a gas amount' do
104
117
ethereum_estimate = Patch ::Estimate . create_ethereum_estimate (
105
118
gas_used : 100
You can’t perform that action at this time.
0 commit comments