Sha256: b86e54b6f5b2bf34dffb4bc3b1dce10bcd981db21b07eb0b5405a3591f92d58e
Contents?: true
Size: 998 Bytes
Versions: 16
Compression:
Stored size: 998 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, :fraud_service_provider => "kount") risk_data.id.should == "123" risk_data.decision.should == "YOU WON $1000 DOLLARS" risk_data.device_data_captured.should be_truthy risk_data.fraud_service_provider.should == "kount" 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, :fraud_service_provider => "kount", ) details.inspect.should == %(#<RiskData id: "123", decision: "YOU WON $1000 DOLLARS", device_data_captured: true, fraud_service_provider: "kount">) end end end
Version data entries
16 entries across 16 versions & 1 rubygems