Sha256: 7521398fb747f09ce931b9cb4ad0742a905434c850ccc3c815594a9b85669e4b
Contents?: true
Size: 568 Bytes
Versions: 17
Compression:
Stored size: 568 Bytes
Contents
ENV["RAILS_ENV"] = "test" $:.unshift File.dirname(__FILE__) $:.unshift File.expand_path('../../lib', __FILE__) require "scenario/config/environment" require "rails/test_help" require 'rspec/rails' require 'sham_rack' require 'capybara/rspec' RSpec.configure do |config| config.mock_with :mocha end ShamRack.at('www.example.com') do |env| request = Rack::Request.new(env) request.path_info = request.path_info.sub(/^\/cas_server/, '') Castronaut::Application.call(request.env) end Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
Version data entries
17 entries across 17 versions & 2 rubygems