Skip to content

Commit

Permalink
fix market trade history spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Xie committed Mar 19, 2014
1 parent 76a886f commit a1723cb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/features/market_trade_history_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
click_on I18n.t('private.markets.show.bid_panel', currency: ask_name)
expect(page.find('.orders-wait')).to have_content(I18n.t('actions.cancel'))

expect do
click_on I18n.t('actions.cancel')
sleep 0.5
end.to change {bid_order.reload.state}.from('wait').to('cancel')
Resque.expects(:enqueue).with(Job::Matching, 'cancel', bid_order.to_matching_attributes)
click_on I18n.t('actions.cancel')
sleep 0.5
end

scenario 'user can not view other orders' do
Expand Down

0 comments on commit a1723cb

Please sign in to comment.