lib/generators/refinery/testing/templates/Guardfile in refinerycms-testing-2.0.10 vs lib/generators/refinery/testing/templates/Guardfile in refinerycms-testing-2.1.0
- old
+ new
@@ -1,6 +1,6 @@
-extensions = Dir[File.expand_path('../vendor/extensions/*', __FILE__)]
+extensions = Dir[ 'vendor/extensions/*' ]
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$})
@@ -22,9 +22,9 @@
watch(%r{^#{extension}/app/controllers/(.+)_(controller)\.rb$}) { |m| ["#{extension}/spec/routing/#{m[1]}_routing_spec.rb", "#{extension}/spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "#{extension}/spec/requests/#{m[1]}_spec.rb"] }
watch(%r{^#{extension}/spec/support/(.+)\.rb$}) { "#{extension}/spec" }
watch("#{extension}/spec/spec_helper.rb") { "#{extension}/spec" }
watch("#{extension}/config/routes.rb") { "#{extension}/spec/routing" }
watch("#{extension}/app/controllers/application_controller.rb") { "#{extension}/spec/controllers" }
- # Capybara request specs
- watch(%r{^#{extension}/app/views/(.+)/.*\.(erb|haml)$}) { |m| "#{extension}/spec/requests/#{m[1]}_spec.rb" }
+ # Capybara feature specs
+ watch(%r{^#{extension}/app/views/(.+)/.*\.(erb|haml)$}) { |m| "#{extension}/spec/features/#{m[1]}_spec.rb" }
end
end