Created
August 6, 2010 19:39
-
-
Save mguterl/511874 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
module SunspotServerForkHackForRSpec | |
def self.included(base) | |
alias_method_chain :fork, :fix_for_rspec | |
end | |
def fork_with_fix_for_rspec | |
fork_without_fix_for_rspec do | |
yield | |
at_exit { exit! } | |
end | |
end | |
end | |
Sunspot::Server.send(:include, SunspotServerForkHackForRSpec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment