modelo_minuta
Last change
on this file since 50de8e9 was
1b91e02,
checked in by aosorio <aosorio@…>, 8 years ago
|
Version para desarrollo local
|
-
Property mode set to
100755
|
File size:
1.3 KB
|
Line | |
---|
1 | guard :rspec, cmd: 'bin/spring rspec', all_on_start: false, all_after_pass: false do |
---|
2 | watch(%r{^spec/.+_spec\.rb$}) |
---|
3 | watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } |
---|
4 | watch('spec/spec_helper.rb') { "spec" } |
---|
5 | |
---|
6 | # Rails example |
---|
7 | watch(%r{^spec/.+_spec\.rb$}) |
---|
8 | watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } |
---|
9 | watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } |
---|
10 | 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"] } |
---|
11 | watch(%r{^spec/support/(.+)\.rb$}) { "spec" } |
---|
12 | watch('spec/spec_helper.rb') { "spec" } |
---|
13 | watch('config/routes.rb') { "spec/routing" } |
---|
14 | watch('app/controllers/application_controller.rb') { "spec/controllers" } |
---|
15 | |
---|
16 | # Capybara request specs |
---|
17 | watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } |
---|
18 | end |
---|
19 | |
---|
20 | guard :cucumber, command_prefix: 'bin/spring', bundler: false, all_on_start: false, all_after_pass: false do |
---|
21 | watch(%r{^features/.+\.feature$}) |
---|
22 | watch(%r{^features/support/.+$}) { 'features' } |
---|
23 | watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' } |
---|
24 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.