Skip to content
Browse files

fixed all specs. ready for next beta

  • Loading branch information...
1 parent 8461478 commit 86333a50cf8087bd0f1469186957d83160ac8169 @guilhermesilveira guilhermesilveira committed Jan 6, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 spec/client_spec.rb
View
3 spec/client_spec.rb
@@ -53,7 +53,6 @@ def my_order
def pay(result)
card = {:payment => {:card_holder => "guilherme silveira", :card_number => 4444, :value => result.order.price}}
- debugger
result = result.order.links.payment.follow.post(card).resource
end
@@ -62,7 +61,7 @@ def wait_payment_success(attempts, result)
while result.order.state == "processing_payment"
sleep 10
puts "Checking order status at #{result.order.links.self.href}"
- result = result.order.refresh.resource
+ result = result.order.links.self.follow.get.resource
end
if result.order.state == "unpaid" && attempts>0

0 comments on commit 86333a5

Please sign in to comment.
Something went wrong with that request. Please try again.