Created
June 11, 2012 22:14
-
-
Save apeckham/2913062 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| require 'spork' | |
| Spork.prefork do | |
| ENV['RAILS_ENV'] = ENV['RACK_ENV'] = 'test' | |
| ENV['SPHINX_ON'] = 'true' | |
| require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment')) | |
| require 'spec/autorun' | |
| require 'spec/rails' | |
| require 'webrat/integrations/rspec-rails' | |
| include ActionController::Assertions::SelectorAssertions | |
| Spec::Runner.configure do |config| | |
| config.use_transactional_fixtures = true | |
| config.use_instantiated_fixtures = false | |
| config.fixture_path = RAILS_ROOT + '/spec/fixtures/' | |
| config.mock_with :mocha | |
| config.before do | |
| @integrate_views = true | |
| end | |
| end | |
| end | |
| Spork.each_run do | |
| Dir[File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))].each { |f| require f } | |
| Spec::Runner.configure do |config| | |
| config.global_fixtures = :all | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment