Sha256: 77621e7a1263ace384cc86ff8c9ab9f9af0f808ad00e9a9b8ab0ccf1900df9e0

Contents?: true

Size: 435 Bytes

Versions: 13

Compression:

Stored size: 435 Bytes

Contents

require File.dirname(__FILE__) + "/spec_helper"

describe Braintree do
  it "doesn't produce warnings if loading braintree.rb twice" do
    lib_dir = File.dirname(__FILE__) + "/../../lib"
    braintree_file = "#{lib_dir}/braintree.rb"
    File.exist?(braintree_file).should == true
    output = `ruby -r rubygems -I #{lib_dir} -e 'load #{braintree_file.inspect}; load #{braintree_file.inspect}' 2>&1`
    output.should == ""
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
braintree-2.6.0 spec/unit/braintree_spec.rb
braintree-2.5.2 spec/unit/braintree_spec.rb
braintree-2.4.0 spec/unit/braintree_spec.rb
braintree-2.3.1 spec/unit/braintree_spec.rb
braintree-2.2.0 spec/unit/braintree_spec.rb
braintree-2.1.0 spec/unit/braintree_spec.rb
braintree-2.0.0 spec/unit/braintree_spec.rb
braintree-1.2.1 spec/unit/braintree_spec.rb
braintree-1.2.0 spec/unit/braintree_spec.rb
braintree-1.1.3 spec/unit/braintree_spec.rb
braintree-1.1.2 spec/unit/braintree_spec.rb
braintree-1.1.1 spec/unit/braintree_spec.rb
braintree-1.1.0 spec/unit/braintree_spec.rb