Sha256: 7d4aa832305ccdf23a3fb20d62f4119ff13a61a3cfb300eebe645605d498a41b
Contents?: true
Size: 827 Bytes
Versions: 15
Compression:
Stored size: 827 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper") describe Braintree::RiskData do describe "#initialize" do it "sets id, decision and device_data_captured" do risk_data = Braintree::RiskData.new(:id => "123", :decision => "YOU WON $1000 DOLLARS", :device_data_captured => true) risk_data.id.should == "123" risk_data.decision.should == "YOU WON $1000 DOLLARS" risk_data.device_data_captured.should be_truthy end end describe "inspect" do it "prints the attributes" do details = Braintree::RiskData.new( :id => "123", :decision => "YOU WON $1000 DOLLARS", :device_data_captured => true ) details.inspect.should == %(#<RiskData id: "123", decision: "YOU WON $1000 DOLLARS", device_data_captured: true>) end end end
Version data entries
15 entries across 15 versions & 1 rubygems