spec/unit/braintree_spec.rb in braintree-2.78.0 vs spec/unit/braintree_spec.rb in braintree-2.79.0
- old
+ new
@@ -4,8 +4,9 @@
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