Sha256: dcd117420587b190215fc46050db6a8012e7ef8cb61582d926ab13b19b089218

Contents?: true

Size: 639 Bytes

Versions: 17

Compression:

Stored size: 639 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.before(:each) do
    Rails.application.reload_routes!
  end
  config.after(:each) do
    Sitepress.reset_configuration
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sitepress-rails-2.0.0.beta8 spec/spec_helper.rb
sitepress-rails-2.0.0.beta7 spec/spec_helper.rb
sitepress-rails-2.0.0.beta6 spec/spec_helper.rb
sitepress-rails-2.0.0.beta5 spec/spec_helper.rb
sitepress-rails-2.0.0.beta4 spec/spec_helper.rb
sitepress-rails-2.0.0.beta3 spec/spec_helper.rb
sitepress-rails-2.0.0.beta2 spec/spec_helper.rb
sitepress-rails-2.0.0.beta1 spec/spec_helper.rb
sitepress-rails-1.0.1 spec/spec_helper.rb
sitepress-rails-1.0.0 spec/spec_helper.rb
sitepress-rails-0.1.29 spec/spec_helper.rb
sitepress-rails-0.1.28 spec/spec_helper.rb
sitepress-rails-0.1.27 spec/spec_helper.rb
sitepress-rails-0.1.26 spec/spec_helper.rb
sitepress-rails-0.1.25 spec/spec_helper.rb
sitepress-rails-0.1.24 spec/spec_helper.rb
sitepress-rails-0.1.23 spec/spec_helper.rb