Sha256: 238d21e2957586324414c82765e06a666a5456f0f4e53bfed7aad5af92d4f932
Contents?: true
Size: 572 Bytes
Versions: 5
Compression:
Stored size: 572 Bytes
Contents
require 'rspec' require 'rack/test' if ENV['COVERAGE'] require 'simplecov' SimpleCov.start do add_filter '/spec/' end end begin require 'rails' rescue LoadError # Rails is not present end if defined? Rails Rails.backtrace_cleaner.remove_silencers! ENV["RAILS_ENV"] = 'test' RAILS_ROOT = File.join(File.dirname(__FILE__), 'spec/dummy') end # Require all files, so they show up in coverage Dir['lib/**/*.rb'].each do |file| path = /lib\/(.*)\.rb/.match(file)[1] require path end RSpec.configure do |conf| conf.include Rack::Test::Methods end
Version data entries
5 entries across 5 versions & 1 rubygems