Created
August 3, 2011 22:33
-
-
Save johnbintz/1124010 to your computer and use it in GitHub Desktop.
Guard::Hydra to use Hydra for run_all
This file contains hidden or 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
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