Sha256: 8d32415db634f845081cf806f244f353758417e2aad28ef4e3674c92a0a8e3e0

Contents?: true

Size: 431 Bytes

Versions: 4

Compression:

Stored size: 431 Bytes

Contents

require 'rspec'
require 'rack/test'

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

RSpec.configure do |conf|
  conf.include Rack::Test::Methods

  # We're still using the old syntax for now
  conf.expect_with(:rspec) { |c| c.syntax = :should }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongo_request_logger-0.8.0 spec/spec_helper.rb
mongo_request_logger-0.7.0 spec/spec_helper.rb
mongo_request_logger-0.6.0 spec/spec_helper.rb
mongo_request_logger-0.5.0 spec/spec_helper.rb