Sha256: 6e47e9cfd8c4f7b5d9288f1bcf5324d818e9ba939ac4ede9d9b8339008ae2c62

Contents?: true

Size: 604 Bytes

Versions: 8

Compression:

Stored size: 604 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

ENV['RAILS_ENV'] ||= 'test'

require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'rspec/rails'

Rails.backtrace_cleaner.remove_silencers!

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.order = "random"
  config.after(:each) do
    Mascot.reset_configuration
    Rails.application.reload_routes!
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mascot-rails-0.1.16 spec/spec_helper.rb
mascot-rails-0.1.15 spec/spec_helper.rb
mascot-rails-0.1.14 spec/spec_helper.rb
mascot-rails-0.1.12 spec/spec_helper.rb
mascot-rails-0.1.11 spec/spec_helper.rb
mascot-rails-0.1.10 spec/spec_helper.rb
mascot-rails-0.1.9 spec/spec_helper.rb
mascot-rails-0.1.8 spec/spec_helper.rb