Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
| require 'rb-fsevent' | |
| unless ENV.has_key?('RSPEC_OPTIONS') | |
| ENV['RSPEC_OPTIONS'] = '--fail-fast' | |
| end | |
| class Watcher | |
| attr_accessor :now, :fsevent, :paths, :wip_enabled | |
| REWRITE_REGEX = %r{(.*)(?:(app/)|(lib/))(.*)\.rb$} |
| #!/usr/bin/env ruby | |
| # Description | |
| # Starts the rails environment in a long running process that forks a test | |
| # runner. The test begins running immediately as the rails environment | |
| # has already been loaded. Useful when running a single spec over and over. | |
| # The program will exit when a change is detected | |
| # in the Gemfile, or the db, config, lib and vendor directories. | |
| # |
Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'