Sha256: f818ccdbae534fd84cf1a867b605a78c55ad447adea9894a2696c6e669fc6e51
Contents?: true
Size: 981 Bytes
Versions: 2
Compression:
Stored size: 981 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 'rspec/autorun' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
atomic_cms-0.2.2 | spec/rails_helper.rb |
atomic_cms-0.2.1 | spec/rails_helper.rb |