Skip to content

Instantly share code, notes, and snippets.

@bigtiger
Created October 8, 2009 23:54
Show Gist options
  • Save bigtiger/205545 to your computer and use it in GitHub Desktop.
Save bigtiger/205545 to your computer and use it in GitHub Desktop.
namespace :thinking_sphinx do
namespace :test do
def usage
"thinking_sphinx:test:prepare"
end
desc "Indexes test environment to allow integration testing"
task :prepare do
ENV['RAILS_ENV'] = 'test'
Rake::Task["thinking_sphinx:index"].invoke
end
end
end
namespace :ts do
namespace :test do
desc "Indexes test environment to allow integration testing"
task :prepare => "thinking_sphinx:test:prepare"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment