Sha256: 3aada8535898ab28019cd06bfe71f615284862d33ed340282b50cf85d7d6d06f

Contents?: true

Size: 957 Bytes

Versions: 7

Compression:

Stored size: 957 Bytes

Contents

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path("../dummy/config/environment.rb", __FILE__)
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.env.production?
require 'spec_helper'
require 'rspec/rails'
require 'factory_girl_rails'
require 'shoulda/matchers'
require 'paperclip/matchers'

ActiveRecord::Migration.maintain_test_schema!

RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = true
  config.infer_spec_type_from_file_location!
  config.infer_base_class_for_anonymous_controllers = false
  config.order = 'random'
  config.infer_spec_type_from_file_location!
  config.include Paperclip::Shoulda::Matchers
end

Shoulda::Matchers.configure do |config|
  config.integrate do |with|
    with.test_framework :rspec
    with.library :rails
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
atomic_cms-0.4.0 spec/rails_helper.rb
atomic_cms-0.3.3 spec/rails_helper.rb
atomic_cms-0.3.2 spec/rails_helper.rb
atomic_cms-0.3.1 spec/rails_helper.rb
atomic_cms-0.3.0 spec/rails_helper.rb
atomic_cms-0.2.5 spec/rails_helper.rb
atomic_cms-0.2.3 spec/rails_helper.rb