spec/pagseguro/notification_spec.rb in pagseguro-0.1.7 vs spec/pagseguro/notification_spec.rb in pagseguro-0.1.8
- old
+ new
@@ -201,9 +201,19 @@
p[:id].should == "8"
p[:quantity].should == 10
p[:fees].should == 2.53
p[:shipping].should == 3.50
end
+
+ specify "bug fix: should work correctly when price is 0.9" do
+ set_product!({
+ :price => ",90",
+ })
+
+ p = @notification.products.first
+
+ p[:price].should == 0.9
+ end
end
describe "confirmation" do
before do
PagSeguro.stub!(:developer?).and_return(false)