Sha256: 50bdb57888656df200d087c5934ecef160644432ef5b303c5bf0a88f0a9dcbd4

Contents?: true

Size: 879 Bytes

Versions: 3

Compression:

Stored size: 879 Bytes

Contents

# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"

require File.expand_path('../../test_app/config/environment', __FILE__)
require "rails/test_help"
require "rspec/rails"
require "database_helpers"

ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_url_options[:host] = "test.com"

Rails.backtrace_cleaner.remove_silencers!

include DatabaseHelpers
# Run any available migration
puts 'Setting up database...'
drop_all_tables
migrate_database

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each{|f| require f}


RSpec.configure do |config|
  # Remove this line if you don't want RSpec's should and should_not
  # methods or matchers
  require 'rspec/expectations'

  config.include RSpec::Matchers
  config.include DatabaseHelpers

  # == Mock Framework
  config.mock_with :rspec
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
interpret-0.1.4 spec/spec_helper.rb
interpret-0.1.3 spec/spec_helper.rb
interpret-0.1.2 spec/spec_helper.rb