Sha256: 3112a525192326bb50bb88ba356f8f73ba068334c5a55ef6db458366ef3fbcdb

Contents?: true

Size: 561 Bytes

Versions: 9

Compression:

Stored size: 561 Bytes

Contents

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

describe Braintree do
  it "doesn't produce warnings if loading braintree.rb twice" do
    lib_dir = File.expand_path(File.dirname(__FILE__) + "/../../lib")
    braintree_file = "#{lib_dir}/braintree.rb"
    expect(File.exist?(braintree_file)).to eq(true)
    output = `ruby -r rubygems -I #{lib_dir} -e 'load #{braintree_file.inspect}; load #{braintree_file.inspect}' 2>&1`
    output = output.gsub(/^.*warning: constant ::Fixnum is deprecated.*\n/, "")
    expect(output).to eq("")
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
braintree-4.23.0 spec/unit/braintree_spec.rb
braintree-4.22.0 spec/unit/braintree_spec.rb
braintree-4.21.0 spec/unit/braintree_spec.rb
braintree-4.20.0 spec/unit/braintree_spec.rb
braintree-4.19.0 spec/unit/braintree_spec.rb
braintree-4.18.0 spec/unit/braintree_spec.rb
braintree-4.17.0 spec/unit/braintree_spec.rb
braintree-4.16.0 spec/unit/braintree_spec.rb
braintree-4.15.0 spec/unit/braintree_spec.rb