Sha256: 4533f139a1d6233492e26c62595f360906179cbe8cb7402d8a394dada3e4b04e

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 Bytes

Contents

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'

require Pathname(__FILE__).dirname.join("dummy/config/environment")

require 'rspec/rails'
require 'database_cleaner'
require 'capybara/rails'

Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)

RSpec.configure do |config|
  config.order = "random"

  config.before(:all) do
    DatabaseCleaner.clean_with(:truncation)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-rails-0.0.1 spec/spec_helper.rb