Sha256: 51ae2a699b1b307ac9fddd765791852be21f5493bc157a86cc7e97d6f791c392

Contents?: true

Size: 911 Bytes

Versions: 4

Compression:

Stored size: 911 Bytes

Contents

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

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require "rails/test_help"
require "rspec"
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

# 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

  config.include(Capybara, :type => :integration) 
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails-styleguide-0.0.4 spec/spec_helper.rb
rails-styleguide-0.0.3 spec/spec_helper.rb
rails-styleguide-0.0.2 spec/spec_helper.rb
rails-styleguide-0.0.1 spec/spec_helper.rb