Sha256: 3bf239bb806e3e15b1741f515470072896c1d1e28fb898747ff62672ae027a97

Contents?: true

Size: 682 Bytes

Versions: 5

Compression:

Stored size: 682 Bytes

Contents

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

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

# Load the Rails environment and testing framework
require "#{File.dirname(__FILE__)}/../app_root/config/environment"
require 'rspec/rails'
require 'rspec_candy/all'

# Run the migrations
print "\033[30m" # dark gray text
ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
print "\033[0m"

RSpec.configure do |config|
  config.use_transactional_fixtures = false
  config.use_instantiated_fixtures  = false
  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

5 entries across 5 versions & 1 rubygems

Version Path
assignable_values-0.11.3 spec/rails-4.1/spec/spec_helper.rb
assignable_values-0.11.2 spec/rails-4.1/spec/spec_helper.rb
assignable_values-0.11.1 spec/rails-4.1/spec/spec_helper.rb
assignable_values-0.11.0 spec/rails-4.1/spec/spec_helper.rb
assignable_values-0.10.0 spec/rails-4.1/spec/spec_helper.rb