spec/spec_helper.rb in grape-0.1.5 vs spec/spec_helper.rb in grape-0.2.0

- old
+ new

@@ -1,20 +1,28 @@ $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) +$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'support')) +$stdout = StringIO.new + require 'grape' require 'rubygems' require 'bundler' Bundler.setup :default, :test -require 'rspec' require 'rack/test' +require 'pry' require 'base64' -def encode_basic(username, password) - "Basic " + Base64.encode64("#{username}:#{password}") + +require 'hashie/hash' + +Dir["#{File.dirname(__FILE__)}/support/*.rb"].each do |file| + require file end RSpec.configure do |config| config.include Rack::Test::Methods + config.include Rack::Test::Methods::Patch end +