spec/unit/braintree_spec.rb in braintree-2.6.0 vs spec/unit/braintree_spec.rb in braintree-2.6.1

- old
+ new

@@ -1,9 +1,9 @@ -require File.dirname(__FILE__) + "/spec_helper" +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.dirname(__FILE__) + "/../../lib" + 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.should == "" end