Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 18 lines (15 sloc) 0.491 kb
cba4802 @njonsson Configure Guard to enable debugging of RSpec specs
authored
1 guard :rspec, :cli => '--color --debugger' do
5969672 @njonsson Add development dependency on Guard
authored
2 # Run the corresponding spec (or all specs) when code changes.
3 watch( %r{^lib/(.+)\.rb$} ) do |match|
4 corresponding_spec = "spec/#{match[1]}_spec.rb"
5 if File.file?( File.expand_path( "../#{corresponding_spec}", __FILE__ ))
6 corresponding_spec
7 else
8 'spec'
9 end
10 end
11
12 # Run a spec when it changes.
13 watch %r{^spec/.+_spec\.rb$}
14
15 # Run all specs when the bundle changes.
16 watch( 'Gemfile.lock' ) { 'spec' }
17 end
Something went wrong with that request. Please try again.