bitex 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bitex/order.rb +1 -1
- data/lib/bitex/version.rb +1 -1
- data/spec/support/order_shared_examples.rb +1 -1
- metadata +1 -1
data/lib/bitex/order.rb
CHANGED
data/lib/bitex/version.rb
CHANGED
@@ -49,7 +49,7 @@ shared_examples_for 'Order' do |api_path|
|
|
49
49
|
stub_private(:post, "/private/#{api_path}", "#{api_path}_create",
|
50
50
|
{amount: 100.50, price: 1000.00, specie: 1})
|
51
51
|
order = subject.class.create!(:btc, 100.50, 1000.00)
|
52
|
-
stub_private(:post, "/private/#{api_path}/cancel", "#{api_path}_cancel")
|
52
|
+
stub_private(:post, "/private/#{api_path}/#{order.id}/cancel", "#{api_path}_cancel")
|
53
53
|
order.cancel!
|
54
54
|
order.status.should == :cancelling
|
55
55
|
end
|