Sha256: 9c031804121d16b169b22685db6992b065c53f9d75f96e1a9b5de62ae30cacd8
Contents?: true
Size: 573 Bytes
Versions: 8
Compression:
Stored size: 573 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 'bundler/setup' require 'rack/test' require 'happy' module SpecHelpers def app subject end def response_for yield if block_given? last_response end def build_controller(&blk) Happy::Controller.build do route do instance_exec(&blk) end end end end RSpec.configure do |conf| conf.include Rack::Test::Methods conf.include SpecHelpers end
Version data entries
8 entries across 8 versions & 1 rubygems