Sha256: 1dff151ef351e2d3e10c1d6c74b61e41d159ed8a1f6dd2a8d541a473b9d48647

Contents?: true

Size: 1.24 KB

Versions: 5

Compression:

Stored size: 1.24 KB

Contents

guard 'rspec', :all_on_start => true, :all_after_pass => true 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/models/(.*)\.rb$})                    { |m| "spec/models/#{m[1]}" }
  watch(%r{^app/presenters/(.*)\.rb$})                { |m| "spec/presenters/#{m[1]}" }
  watch(%r{^app/controllers/dbd_data_engine/(.+)_(controller)\.rb$})  do |m|
    ["spec/routing/#{m[1]}_routing_spec.rb",
     "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb",
     "spec/features/#{m[1]}",
     "spec/requests/#{m[1]}"]
  end
  watch(%r{^spec/support/(.+)\.rb$})                  { "spec" }
  watch('config/routes.rb')                           { "spec/routing" }
  watch('app/controllers/dbd_data_engine/application_controller.rb') do
    ["spec/controllers",
     "spec/features",
     "spec/requests"]
  end

  # Capybara features specs
  watch(%r{^app/views/(.+)/.*\.(erb|haml)$})          { |m| "spec/features/#{m[1]}_spec.rb" }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dbd_data_engine-0.0.10 Guardfile
dbd_data_engine-0.0.9 Guardfile
dbd_data_engine-0.0.8 Guardfile
dbd_data_engine-0.0.7 Guardfile
dbd_data_engine-0.0.6 Guardfile