Sha256: 8ddcd06441634ebe58fff45ef898eed6fa18d685377ee5ec641fa35d3e6ffb56

Contents?: true

Size: 1.05 KB

Versions: 10

Compression:

Stored size: 1.05 KB

Contents

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

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

Bundler.require(:default, ENV["RAILS_ENV"])

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 }
Dir["#{File.dirname(__FILE__)}/fabricators/**/*.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

10 entries across 10 versions & 1 rubygems

Version Path
puffer-0.0.19 spec/spec_helper.rb
puffer-0.0.18 spec/spec_helper.rb
puffer-0.0.17 spec/spec_helper.rb
puffer-0.0.16 spec/spec_helper.rb
puffer-0.0.15 spec/spec_helper.rb
puffer-0.0.14 spec/spec_helper.rb
puffer-0.0.13 spec/spec_helper.rb
puffer-0.0.12 spec/spec_helper.rb
puffer-0.0.11 spec/spec_helper.rb
puffer-0.0.10 spec/spec_helper.rb