test/helper.rb in sanford-0.6.3 vs test/helper.rb in sanford-0.6.4

- old
+ new

@@ -1,21 +1,22 @@ -ENV['SANFORD_PROTOCOL_DEBUG'] = 'yes' +# this file is automatically required when you run `assert` +# put any test helpers here -require 'ostruct' +# add the root dir to the load path +$LOAD_PATH.unshift(File.expand_path("../..", __FILE__)) -ROOT = File.expand_path('../..', __FILE__) +require 'pry' # require pry for debugging (`binding.pry`) +require 'assert-mocha' if defined?(Assert) -require 'sanford' +ENV['SANFORD_PROTOCOL_DEBUG'] = 'yes' +require 'sanford' +ROOT = File.expand_path('../..', __FILE__) Sanford.configure do |config| config.services_file = File.join(ROOT, 'test/support/services') end Sanford.init require 'test/support/fake_connection' require 'test/support/service_handlers' require 'test/support/simple_client' require 'test/support/helpers' - -if defined?(Assert) - require 'assert-mocha' -end