Sha256: 023a41c8bd415685a155061150b29fcf68f7fa00e7c55cf5a18b2adeb2bf4101
Contents?: true
Size: 968 Bytes
Versions: 2
Compression:
Stored size: 968 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") describe Braintree::SuccessfulResult do describe "initialize" do it "creates attr readers the values in the hash" do result = Braintree::SuccessfulResult.new( :foo => "foo_value", :bar => "bar_value" ) result.success?.should == true result.foo.should == "foo_value" result.bar.should == "bar_value" end it "can be initialized without any values" do result = Braintree::SuccessfulResult.new result.success?.should == true end end describe "inspect" do it "is pretty" do result = Braintree::SuccessfulResult.new(:foo => "foo_value") result.inspect.should == "#<Braintree::SuccessfulResult foo:\"foo_value\">" end end describe "payer_authentication_required?" do it "is always false" do Braintree::SuccessfulResult.new.payer_authentication_required?.should be_false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
braintree-2.10.3 | spec/unit/braintree/successful_result_spec.rb |
braintree-2.10.2 | spec/unit/braintree/successful_result_spec.rb |