Created
July 11, 2011 16:07
-
-
Save ericallam/1076189 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is copied to ~/spec when you run 'ruby script/generate rspec' | |
# from the project root directory. | |
ENV["RAILS_ENV"] ||= 'test' | |
$:.unshift File.dirname(__FILE__) | |
require "rails_app/config/environment" | |
require 'rails/test_help' | |
require 'rspec/rails' | |
Rails.backtrace_cleaner.remove_silencers! | |
# Capybara.default_driver = :selenium | |
# Requires supporting files with custom matchers and macros, etc, | |
# in ./support/ and its subdirectories. | |
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} | |
RSpec.configure do |config| | |
config.include CodePathCourse::Engine.routes.url_helpers | |
# == Mock Framework | |
# | |
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: | |
# | |
# config.mock_with :mocha | |
# config.mock_with :flexmock | |
# config.mock_with :rr | |
config.mock_with :rspec | |
# If you're not using ActiveRecord, or you'd prefer not to run each of your | |
# examples within a transaction, comment the following line or assign false | |
# instead of true. | |
config.use_transactional_fixtures = true | |
end | |
# # For generators | |
# require "rails/generators/test_case" | |
# require "generators/devise/install_generator" | |
# require "generators/devise/views_generator" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
config.include CodePathCourse::Engine.routes.url_helpers
Use this to get the engines url helpers in your integration specs