Sha256: 5fda98ef72a2c408bb97c170c64178494b8949a2f7aa86841d060f36ddc3883d
Contents?: true
Size: 421 Bytes
Versions: 6
Compression:
Stored size: 421 Bytes
Contents
SPEC_DIR = File.dirname(__FILE__) lib_path = File.expand_path("#{SPEC_DIR}/../lib") $LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path) require 'rubygems' require 'rack/test' require 'happy' module SpecHelpers def app subject end def response_for yield if block_given? last_response end end RSpec.configure do |conf| conf.include Rack::Test::Methods conf.include SpecHelpers end
Version data entries
6 entries across 6 versions & 1 rubygems