|
56 | 56 | it "calls client request with the correct path" do
|
57 | 57 | api.wallet(wallet_id)
|
58 | 58 |
|
59 |
| - expect(client).to have_received(:request).with("#{api.base_path}/tbtc/wallet/#{wallet_id}?", logger: nil) |
| 59 | + expect(client).to have_received(:request).with("#{api.base_path}/tbtc/wallet/#{wallet_id}?", logger: nil, proxy: nil) |
60 | 60 | end
|
61 | 61 | end
|
62 | 62 |
|
63 | 63 | context "with specific coin_code" do
|
64 | 64 | it "calls client request with the correct path" do
|
65 | 65 | api.wallet(wallet_id, coin_code: :xxx)
|
66 | 66 |
|
67 |
| - expect(client).to have_received(:request).with("#{api.base_path}/xxx/wallet/#{wallet_id}?", logger: nil) |
| 67 | + expect(client).to have_received(:request).with("#{api.base_path}/xxx/wallet/#{wallet_id}?", logger: nil, proxy: nil) |
68 | 68 | end
|
69 | 69 | end
|
70 | 70 | end
|
|
75 | 75 | api.create_address(wallet_id)
|
76 | 76 |
|
77 | 77 | expect(client).to have_received(:request)
|
78 |
| - .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/address", method: :post, logger: nil) |
| 78 | + .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/address", method: :post, logger: nil, proxy: nil) |
79 | 79 | end
|
80 | 80 | end
|
81 | 81 |
|
|
84 | 84 | api.create_address(wallet_id, coin_code: :xxx)
|
85 | 85 |
|
86 | 86 | expect(client).to have_received(:request)
|
87 |
| - .with("#{api.base_path}/xxx/wallet/#{wallet_id}/address", method: :post, logger: nil) |
| 87 | + .with("#{api.base_path}/xxx/wallet/#{wallet_id}/address", method: :post, logger: nil, proxy: nil) |
88 | 88 | end
|
89 | 89 | end
|
90 | 90 | end
|
|
97 | 97 | api.address(wallet_id, address)
|
98 | 98 |
|
99 | 99 | expect(client).to have_received(:request)
|
100 |
| - .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/address/#{address}", logger: nil) |
| 100 | + .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/address/#{address}", logger: nil, proxy: nil) |
101 | 101 | end
|
102 | 102 | end
|
103 | 103 |
|
|
106 | 106 | api.address(wallet_id, address, coin_code: :xxx)
|
107 | 107 |
|
108 | 108 | expect(client).to have_received(:request)
|
109 |
| - .with("#{api.base_path}/xxx/wallet/#{wallet_id}/address/#{address}", logger: nil) |
| 109 | + .with("#{api.base_path}/xxx/wallet/#{wallet_id}/address/#{address}", logger: nil, proxy: nil) |
110 | 110 | end
|
111 | 111 | end
|
112 | 112 | end
|
|
139 | 139 | api.transactions(wallet_id)
|
140 | 140 |
|
141 | 141 | expect(client).to have_received(:request)
|
142 |
| - .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/tx?limit=25", logger: nil) |
| 142 | + .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/tx?limit=25", logger: nil, proxy: nil) |
143 | 143 | end
|
144 | 144 | end
|
145 | 145 |
|
|
148 | 148 | api.transactions(wallet_id, coin_code: :xxx, limit: 250, prev_id: "xxx42", all_tokens: true)
|
149 | 149 |
|
150 | 150 | expect(client).to have_received(:request)
|
151 |
| - .with("#{api.base_path}/xxx/wallet/#{wallet_id}/tx?allTokens=true&limit=250&prevId=xxx42", logger: nil) |
| 151 | + .with("#{api.base_path}/xxx/wallet/#{wallet_id}/tx?allTokens=true&limit=250&prevId=xxx42", logger: nil, proxy: nil) |
152 | 152 | end
|
153 | 153 | end
|
154 | 154 | end
|
|
161 | 161 | api.transaction(wallet_id, tx_id)
|
162 | 162 |
|
163 | 163 | expect(client).to have_received(:request)
|
164 |
| - .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/tx/#{tx_id}", logger: nil) |
| 164 | + .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/tx/#{tx_id}", logger: nil, proxy: nil) |
165 | 165 | end
|
166 | 166 | end
|
167 | 167 |
|
|
170 | 170 | api.transaction(wallet_id, tx_id, coin_code: :xxx)
|
171 | 171 |
|
172 | 172 | expect(client).to have_received(:request)
|
173 |
| - .with("#{api.base_path}/xxx/wallet/#{wallet_id}/tx/#{tx_id}", logger: nil) |
| 173 | + .with("#{api.base_path}/xxx/wallet/#{wallet_id}/tx/#{tx_id}", logger: nil, proxy: nil) |
174 | 174 | end
|
175 | 175 | end
|
176 | 176 | end
|
|
181 | 181 | api.fee
|
182 | 182 |
|
183 | 183 | expect(client).to have_received(:request)
|
184 |
| - .with("#{api.base_path}/tbtc/tx/fee", logger: nil) |
| 184 | + .with("#{api.base_path}/tbtc/tx/fee", logger: nil, proxy: nil) |
185 | 185 | end
|
186 | 186 | end
|
187 | 187 |
|
|
190 | 190 | api.fee(coin_code: :xxx)
|
191 | 191 |
|
192 | 192 | expect(client).to have_received(:request)
|
193 |
| - .with("#{api.base_path}/xxx/tx/fee", logger: nil) |
| 193 | + .with("#{api.base_path}/xxx/tx/fee", logger: nil, proxy: nil) |
194 | 194 | end
|
195 | 195 | end
|
196 | 196 | end
|
|
201 | 201 | api.transfers(wallet_id)
|
202 | 202 |
|
203 | 203 | expect(client).to have_received(:request)
|
204 |
| - .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/transfer?limit=25", logger: nil) |
| 204 | + .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/transfer?limit=25", logger: nil, proxy: nil) |
205 | 205 | end
|
206 | 206 | end
|
207 | 207 |
|
|
210 | 210 | api.transfers(wallet_id, coin_code: :xxx, limit: 250, prev_id: "xxx42", all_tokens: true)
|
211 | 211 |
|
212 | 212 | expect(client).to have_received(:request)
|
213 |
| - .with("#{api.base_path}/xxx/wallet/#{wallet_id}/transfer?allTokens=true&limit=250&prevId=xxx42", logger: nil) |
| 213 | + .with("#{api.base_path}/xxx/wallet/#{wallet_id}/transfer?allTokens=true&limit=250&prevId=xxx42", logger: nil, proxy: nil) |
214 | 214 | end
|
215 | 215 | end
|
216 | 216 | end
|
|
223 | 223 | api.get_transfer(wallet_id, tx_id)
|
224 | 224 |
|
225 | 225 | expect(client).to have_received(:request)
|
226 |
| - .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/transfer/#{tx_id}", logger: nil) |
| 226 | + .with("#{api.base_path}/tbtc/wallet/#{wallet_id}/transfer/#{tx_id}", logger: nil, proxy: nil) |
227 | 227 | end
|
228 | 228 | end
|
229 | 229 |
|
|
232 | 232 | api.get_transfer(wallet_id, tx_id, coin_code: :xxx)
|
233 | 233 |
|
234 | 234 | expect(client).to have_received(:request)
|
235 |
| - .with("#{api.base_path}/xxx/wallet/#{wallet_id}/transfer/#{tx_id}", logger: nil) |
| 235 | + .with("#{api.base_path}/xxx/wallet/#{wallet_id}/transfer/#{tx_id}", logger: nil, proxy: nil) |
236 | 236 | end
|
237 | 237 | end
|
238 | 238 | end
|
|
0 commit comments