Sha256: aa45b3f0400fb814c09d32d2595fdd043a29ae5a0077e8d06b7f631db5847c1a
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
require File.dirname(__FILE__) + "/../spec_helper" describe Braintree::BaseModule do describe "return_object_or_raise" do it "inspects the error_result when inspecting the exception" do result = Braintree::ErrorResult.new(:gateway, :errors => {}) begin klass = Class.new { include Braintree::BaseModule } klass.return_object_or_raise(:obj) { result } rescue Braintree::ValidationsFailed => ex end ex.should_not == nil ex.error_result.should == result ex.inspect.should include(result.inspect) ex.to_s.should include(result.inspect) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
braintree-2.6.0 | spec/unit/braintree/base_module_spec.rb |
braintree-2.5.2 | spec/unit/braintree/base_module_spec.rb |
braintree-2.5.1 | spec/unit/braintree/base_module_spec.rb |