Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (18 sloc) 1.34 KB
guard 'rspec', :version => 2 do
watch('spec/spec_helper.rb') { "spec" }
watch('config/routes.rb') { "spec/routing" }
watch('app/controllers/application_controller.rb') { "spec/controllers" }
watch(%r{^spec/.+_spec\.rb})
watch(%r{^app/(.+)\.rb}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch(%r{^app/controllers/(.+)_(controller)\.rb}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
end
# RSpec options:
# :version => 1 # force use RSpec version 1, default: 2
# :cli => "-c -f doc" # pass arbitrary RSpec CLI arguments, default: "-f progress"
# :bundler => false # don't use "bundle exec" to run the RSpec command, default: true
# :rvm => ['1.8.7', '1.9.2'] # directly run your specs on multiple Rubies, default: nil
# :notification => false # don't display Growl (or Libnotify) notification after the specs are done running, default: true
# :all_after_pass => false # don't run all specs after changed specs pass, default: true
# :all_on_start => false # don't run all the specs at startup, default: true
# :keep_failed => false # keep failed specs until them pass, default: true
Something went wrong with that request. Please try again.