Sha256: cc595a2147c187481c21be749b7503751001697e9fd194b047de4b754c9071c4

Contents?: true

Size: 930 Bytes

Versions: 8

Compression:

Stored size: 930 Bytes

Contents

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

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require "rspec/rails"

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

Rails.backtrace_cleaner.remove_silencers!

# Configure capybara for integration testing
require "capybara/rails"
Capybara.default_driver   = :rack_test
Capybara.default_selector = :css

# Run any available migration
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)

# 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

  # == Mock Framework
  config.mock_with :rspec
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
houdini-rails3-0.1.9 spec/spec_helper.rb
houdini-rails3-0.1.8 spec/spec_helper.rb
houdini-rails3-0.1.7 spec/spec_helper.rb
houdini-rails3-0.1.5 spec/spec_helper.rb
houdini-rails3-0.1.4 spec/spec_helper.rb
houdini-rails3-0.1.3 spec/spec_helper.rb
houdini-rails3-0.1.2 spec/spec_helper.rb
houdini-rails3-0.1.0 spec/spec_helper.rb