Skip to content

Instantly share code, notes, and snippets.

@bigtiger
Created October 9, 2009 21:23
Show Gist options
  • Save bigtiger/206375 to your computer and use it in GitHub Desktop.
Save bigtiger/206375 to your computer and use it in GitHub Desktop.
module ThinkingSphinx
class SpecHelper
def start_sphinx
system('rake', 'ts:start', 'RAILS_ENV=test')
end
def stop_sphinx
system('rake', 'ts:stop', 'RAILS_ENV=test')
end
def index
system('rake', 'ts:index', 'RAILS_ENV=test')
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment