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

Version Path
braintree-3.2.0 spec/unit/braintree/risk_data_spec.rb
braintree-3.1.0 spec/unit/braintree/risk_data_spec.rb
braintree-3.0.1 spec/unit/braintree/risk_data_spec.rb
braintree-2.104.1 spec/unit/braintree/risk_data_spec.rb
braintree-2.104.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.103.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.102.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.101.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.100.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.99.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.98.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.97.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.96.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.95.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.94.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.93.0 spec/unit/braintree/risk_data_spec.rb