1831bf752f
It allows to define: watch("foo_bar.rb") without meaning /foo_bar.rb/ (where "foo_bar_rb.rb" would have been matched) However, during the deprecation phase, strings that look like a regexes (e.g. "^foo_bar.rb", "foo_bar.rb$", "foo_.*bar.rb" or "foo_(bar|baz).rb" are converted automatically to Regexp and a *very annoying* deprecation message is displayed.
5 lines
177 B
Ruby
5 lines
177 B
Ruby
guard('rspec', :version => 2) do
|
|
watch(%r{^spec/(.*)_spec\.rb})
|
|
watch(%r{^lib/(.*)\.rb}) { |m| "spec/#{m[1]}_spec.rb" }
|
|
watch('spec/spec_helper.rb') { "spec" }
|
|
end |