Sha256: d8c93b1b802885f592fa228524f43153bfd5ae9770dd7a6bdead9220abeb5966

Contents?: true

Size: 813 Bytes

Versions: 2

Compression:

Stored size: 813 Bytes

Contents

$: << File.join(File.dirname(__FILE__), "/../../lib" )

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

FileUtils.rm(Dir.glob("app_root/db/*.db"), :force => true)

# Load the Rails environment and testing framework
require "#{File.dirname(__FILE__)}/../app_root/config/environment"
require 'rspec/rails'
require 'edge_rider/development'
DatabaseCleaner.strategy = :truncation

require 'rspec_candy/helpers'

# Run the migrations
EdgeRider::Development.migrate_test_database

RSpec.configure do |config|
  config.use_transactional_fixtures = false
  config.use_instantiated_fixtures  = false
  config.before(:each) do
    DatabaseCleaner.clean
  end
  config.mock_with :rspec do |c|
    c.syntax = [:should, :expect]
  end
  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
edge_rider-0.3.1 spec/rails-4.1/spec/spec_helper.rb
edge_rider-0.3.0 spec/rails-4.1/spec/spec_helper.rb