Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (31 sloc) 1.83 kb
guard 'rspec', :version => 2, :spec_paths => ['authentication/spec', 'core/spec', 'dashboard/spec', 'images/spec', 'pages/spec', 'resources/spec', 'settings/spec'], :cli => "--format Fuubar --color --drb" do
[
'authentication',
'core',
'dashboard',
'images',
'pages',
'resources',
'settings'
].each do |engine|
watch(%r{^#{engine}/spec/.+_spec\.rb$})
watch(%r{^#{engine}/app/(.+)\.rb$}) { |m| "#{engine}/spec/#{m[1]}_spec.rb" }
watch(%r{^#{engine}/lib/(.+)\.rb$}) { |m| "#{engine}/spec/lib/#{m[1]}_spec.rb" }
watch(%r{^#{engine}/app/controllers/(.+)_(controller)\.rb$}) { |m| ["#{engine}/spec/routing/#{m[1]}_routing_spec.rb", "#{engine}/spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "#{engine}/spec/acceptance/#{m[1]}_spec.rb"] }
watch(%r{^#{engine}/spec/support/(.+)\.rb$}) { "#{engine}/spec" }
watch("#{engine}/spec/spec_helper.rb") { "#{engine}/spec" }
watch("#{engine}/config/routes.rb") { "#{engine}/spec/routing" }
watch("#{engine}/app/controllers/application_controller.rb") { "#{engine}/spec/controllers" }
# Capybara request specs
# TODO: Requests specs do not follow a convention that matches view locations so this "suggested" watch and match
# doesn't function. Should we refactor the request_specs or babysit this file?
# watch(%r{^#{engine}/app/views/(.+)/.*\.(erb|haml)$}) { |m| "#{engine}/spec/requests/#{m[1]}_spec.rb" }
end
end
guard 'spork', :wait => 60, :cucumber => false, :rspec_env => { 'RAILS_ENV' => 'test' } do
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.+\.rb$})
watch(%r{^config/initializers/.+\.rb$})
watch('spec/spec_helper.rb')
end
Jump to Line
Something went wrong with that request. Please try again.