Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't preload rspec/rails

In spin's preloader, "require 'rspec/rails'" results in parts of Rails getting loaded too soon.
In particular, Rails expects ActionView::TestCase::TestController to be defined after ActionController::Railties::Paths gets chance to set up an 'inherited' hook.  If rspec/rails loads before the application initializes, helper methods may not be available to view specs, for instance.
  • Loading branch information...
commit 8e70274a1a336506a4f8dbe22fef1015ebfe08d8 1 parent a17e7ae
@jdelStrother jdelStrother authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  bin/spin
View
1  bin/spin
@@ -102,7 +102,6 @@ def serve(force_rspec, force_testunit, time, push_results, preload)
# Preload RSpec to save some time on each test run
begin
- require 'rspec/rails'
require 'rspec/autorun'
# Tell RSpec it's running with a tty to allow colored output
Please sign in to comment.
Something went wrong with that request. Please try again.