Sha256: 1c70cd454faa061dc0ad0c915f2e89b17c92283e6097720f2cdf54cb5d19cf8f
Contents?: true
Size: 682 Bytes
Versions: 12
Compression:
Stored size: 682 Bytes
Contents
$:.unshift File.expand_path('../lib', __FILE__) # ENV['RACK_ENV'] = 'test' # ENV['RAILS_ENV'] = 'test' require 'timecop' require 'simplecov' require 'rack/test' require 'peastash' RSpec.configure do |config| config.include Rack::Test::Methods config.before(:all) do # Muting the output from the logger Peastash::Outputs::IO.class_variable_set(:@@default_io, File.open(File::NULL, File::WRONLY)) end config.before(:each) do # For the errors to be raised Peastash.unsafe! end end def unconfigure_foostash! Peastash.class_variable_set(:@@instance_cache, ThreadSafe::Cache.new) end def env_for(url, opts={}) Rack::MockRequest.env_for(url, opts) end
Version data entries
12 entries across 12 versions & 1 rubygems