Skip to content

Instantly share code, notes, and snippets.

@johnbintz
Created August 3, 2011 22:33
Show Gist options
  • Save johnbintz/1124010 to your computer and use it in GitHub Desktop.
Save johnbintz/1124010 to your computer and use it in GitHub Desktop.
Guard::Hydra to use Hydra for run_all
require 'guard'
require 'guard/guard'
require 'guard/rspec'
module ::Guard
class ::Guard::Hydra < ::Guard::RSpec
def start
UI.info "Guard::Hydra is giving Guard::RSpec super run_all powers. Whoa!"
super
end
def run_all
system %{rake RAILS_ENV=test hydra:spec}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment