diff options
| author | Luc Donnet | 2015-01-05 14:56:12 +0100 | 
|---|---|---|
| committer | Luc Donnet | 2015-01-05 14:56:12 +0100 | 
| commit | 3bc6d313bebdc1f03e4021aabbc774a0cd97d938 (patch) | |
| tree | ac5b8c6d8309012136606d9fd9b9a00290f486a8 /Guardfile | |
| parent | e632a4634b1762f4c73d11f1e5b127de9832a1ff (diff) | |
| download | chouette-core-3bc6d313bebdc1f03e4021aabbc774a0cd97d938.tar.bz2 | |
Initialize rails 4 migration
Diffstat (limited to 'Guardfile')
| -rw-r--r-- | Guardfile | 25 | 
1 files changed, 18 insertions, 7 deletions
@@ -1,19 +1,30 @@ -# A sample Guardfile -# More info at https://github.com/guard/guard#readme - -guard 'rspec', :version => 2, :notification => false do +# Note: The cmd option is now required due to the increasing number of ways +#       rspec may be run, below are examples of the most common uses. +#  * bundler: 'bundle exec rspec' +#  * bundler binstubs: 'bin/rspec' +#  * spring: 'bin/rsspec' (This will use spring if running and you have +#                          installed the spring binstubs per the docs) +#  * zeus: 'zeus rspec' (requires the server to be started separetly) +#  * 'just' rspec: 'rspec' +guard :rspec, cmd: 'bundle exec rspec' do    watch(%r{^spec/.+_spec\.rb$})    watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }    watch('spec/spec_helper.rb')  { "spec" }    # Rails example    watch(%r{^app/(.+)\.rb$})                           { |m| "spec/#{m[1]}_spec.rb" } -  watch(%r{^app/(.*)(\.erb|\.haml)$})                 { |m| "spec/#{m[1]}#{m[2]}_spec.rb" } +  watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$})          { |m| "spec/#{m[1]}#{m[2]}_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"] }    watch(%r{^spec/support/(.+)\.rb$})                  { "spec" }    watch('config/routes.rb')                           { "spec/routing" }    watch('app/controllers/application_controller.rb')  { "spec/controllers" } -  # Capybara request specs -  watch(%r{^app/views/(.+)/.*\.(erb|haml)$})          { |m| "spec/requests/#{m[1]}_spec.rb" } +  watch('spec/rails_helper.rb')                       { "spec" } + +  # Capybara features specs +  watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$})     { |m| "spec/features/#{m[1]}_spec.rb" } + +  # Turnip features and steps +  watch(%r{^spec/acceptance/(.+)\.feature$}) +  watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$})   { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }  end  | 
