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-4.14.0 spec/unit/braintree_spec.rb
braintree-4.13.0 spec/unit/braintree_spec.rb
braintree-4.12.0 spec/unit/braintree_spec.rb
braintree-4.11.0 spec/unit/braintree_spec.rb
braintree-4.10.0 spec/unit/braintree_spec.rb
braintree-4.9.0 spec/unit/braintree_spec.rb
braintree-4.8.0 spec/unit/braintree_spec.rb
braintree-4.7.0 spec/unit/braintree_spec.rb
braintree-4.6.0 spec/unit/braintree_spec.rb
braintree-4.5.0 spec/unit/braintree_spec.rb
braintree-4.4.0 spec/unit/braintree_spec.rb
braintree-4.3.0 spec/unit/braintree_spec.rb
braintree-4.2.0 spec/unit/braintree_spec.rb
braintree-4.1.0 spec/unit/braintree_spec.rb
braintree-4.0.0 spec/unit/braintree_spec.rb
braintree-3.4.0 spec/unit/braintree_spec.rb
braintree-3.3.0 spec/unit/braintree_spec.rb
braintree-3.2.0 spec/unit/braintree_spec.rb
braintree-3.1.0 spec/unit/braintree_spec.rb
braintree-3.0.1 spec/unit/braintree_spec.rb