Sha256: 48da50d7fb2871969d79055453c77045790a491acb2bfe13f9488be92627f15b

Contents?: true

Size: 843 Bytes

Versions: 6

Compression:

Stored size: 843 Bytes

Contents

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

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

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
high_voltage-1.2.0 spec/spec_helper.rb
high_voltage-1.1.1 spec/spec_helper.rb
high_voltage-1.1.0 spec/spec_helper.rb
stopwatch-0.0.4 spec/spec_helper.rb
web-app-theme-0.8.0 spec/spec_helper.rb
stopwatch-0.0.3 spec/spec_helper.rb