Permalink
Browse files

fix the specs in ruby 1.8.7

  • Loading branch information...
1 parent 8b79794 commit cd8dd49cd7aa19f19779348dd7c0a3d2f89cb988 @rafaelss committed May 15, 2012
@@ -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"
@@ -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
@@ -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

0 comments on commit cd8dd49

Please sign in to comment.