Sha256: 64a802734450e1222aef4625eb5f2ca0a390e6496b8aaa1c44185619764e34cc
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
require 'spec_helper' RECEIPT_DATA = File.read(File.join(File.dirname(__FILE__), "receipt")) describe 'Receipt Verification' do describe 'production' do it 'verifies a receipt' do lambda { receipt = Venice::Receipt.verify!(RECEIPT_DATA) receipt.quantity.should == 1 receipt.product_id.should == "com.mindmobapp.download" receipt.transaction_id.should == "1000000046178817" receipt.original.should_not be nil }.should_not raise_error end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
venice-0.2.0 | spec/receipt_verification_spec.rb |
venice-0.1.0 | spec/receipt_verification_spec.rb |
venice-0.0.1 | spec/receipt_verification_spec.rb |