Created
August 12, 2011 16:57
-
-
Save rafael/1142468 to your computer and use it in GitHub Desktop.
Spork problem
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
I'm having the following it issue. When I run the specs using spork the following error arises: | |
You might have expected an instance of ActiveRecord::Base. | |
The error occurred while evaluating nil.[] | |
I read the following post: | |
http://groups.google.com/group/sporkgem/browse_thread/thread/46b8358008046986 | |
I saw something related to a monkey patch with the ext/ruby-debugger. It wasn't really related to my issue but I tried to run the specs with --debugger and the error disappears. | |
So I added this to my prefork: | |
require 'spork/ext/ruby-debug' | |
Spork.prefork { SporkDebugger.run } if Spork.using_spork? | |
The problem is that it solves the issue, but now it takes even more time to run the specs than without Spork. | |
Do you know why is this happening? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment