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

Version Path
braintree-2.92.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.91.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.90.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.89.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.88.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.87.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.86.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.85.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.84.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.83.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.82.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.81.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.80.1 spec/unit/braintree/risk_data_spec.rb
braintree-2.80.0 spec/unit/braintree/risk_data_spec.rb
braintree-2.79.0 spec/unit/braintree/risk_data_spec.rb