Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix the specs in ruby 1.8.7

  • Loading branch information...
commit cd8dd49cd7aa19f19779348dd7c0a3d2f89cb988 1 parent 8b79794
@rafaelss authored
View
2  spec/cielo/authorization_request_spec.rb
@@ -40,7 +40,7 @@
transaction.authorization.code.should == 6
transaction.authorization.message.should == "Transação autorizada"
- transaction.authorization.time.should == Time.new(2010, 7, 14, 13, 56, 12)
+ transaction.authorization.time.should == Time.parse("2010-07-14 13:56:12")
transaction.authorization.total.should == 100
transaction.authorization.lr.should == 1
transaction.authorization.arp.should == "a1b2c3"
View
2  spec/cielo/cancelation_request_spec.rb
@@ -43,7 +43,7 @@
transaction.status.should == 9
transaction.cancelation.code.should == 9
transaction.cancelation.message.should == "Transacao cancelada com sucesso"
- transaction.cancelation.time.should == Time.new(2012, 5, 14, 9, 52, 14)
+ transaction.cancelation.time.should == Time.parse("2012-05-14 09:52:14")
transaction.cancelation.total.should == 100
end
end
View
2  spec/cielo/capture_request_spec.rb
@@ -43,7 +43,7 @@
transaction.status.should == 6
transaction.capture.code.should == 6
transaction.capture.message.should == "Transação capturada"
- transaction.capture.time.should == Time.new(2010, 7, 14, 13, 56, 12)
+ transaction.capture.time.should == Time.parse("2010-07-14 13:56:12")
transaction.capture.total.should == 100
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.