Sha256: 674d942f448ff0863356e992b5b780682b0a1284933191850b547a2cc196eae0

Contents?: true

Size: 551 Bytes

Versions: 48

Compression:

Stored size: 551 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"
    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 = output.gsub(/^.*warning: constant ::Fixnum is deprecated.*\n/, "")
    output.should == ""
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
braintree-2.104.1 spec/unit/braintree_spec.rb
braintree-2.104.0 spec/unit/braintree_spec.rb
braintree-2.103.0 spec/unit/braintree_spec.rb
braintree-2.102.0 spec/unit/braintree_spec.rb
braintree-2.101.0 spec/unit/braintree_spec.rb
braintree-2.100.0 spec/unit/braintree_spec.rb
braintree-2.99.0 spec/unit/braintree_spec.rb
braintree-2.98.0 spec/unit/braintree_spec.rb
braintree-2.97.0 spec/unit/braintree_spec.rb
braintree-2.96.0 spec/unit/braintree_spec.rb
braintree-2.95.0 spec/unit/braintree_spec.rb
braintree-2.94.0 spec/unit/braintree_spec.rb
braintree-2.93.0 spec/unit/braintree_spec.rb
braintree-2.92.0 spec/unit/braintree_spec.rb
braintree-2.91.0 spec/unit/braintree_spec.rb
braintree-2.90.0 spec/unit/braintree_spec.rb
braintree-2.89.0 spec/unit/braintree_spec.rb
braintree-2.88.0 spec/unit/braintree_spec.rb
braintree-2.87.0 spec/unit/braintree_spec.rb
braintree-2.86.0 spec/unit/braintree_spec.rb