Sha256: 29f91bad26b86aa0ef8fed1f682cdbf4eb6c06437feb192b54a6ee68ff9a991b

Contents?: true

Size: 702 Bytes

Versions: 5

Compression:

Stored size: 702 Bytes

Contents

group :red_green_refactor, halt_on_fail: true do

  guard 'rspec', cmd: 'bundle exec rspec' do
    watch('spec/spec_helper.rb')                       { 'spec' }
    watch('config/routes.rb')                          { 'spec/controllers' }
    watch(%r{^spec/(.+)_spec\.rb$})                    { |m| "spec/#{m[1]}_spec.rb"}
    watch(%r{^app/(.+)\.rb$})                          { |m| "spec/#{m[1]}_spec.rb" }
    watch(%r{^app/(.*)(\.erb)$})                       { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
    watch(%r{^lib/(.+)\.rb$})                          { |m| "spec/#{m[1]}_spec.rb" }
    watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb" }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_mobility-1.4.0 Guardfile
spree_mobility-1.3.0 Guardfile
spree_mobility-1.2.0 Guardfile
spree_mobility-1.1.0 Guardfile
spree_mobility-1.0.0 Guardfile