Sha256: e28d2a63dd301f7b911c1bf91f87758f1bf9be1fead2d5704f6b5d9cb8ab997d

Contents?: true

Size: 890 Bytes

Versions: 12

Compression:

Stored size: 890 Bytes

Contents

guard :cucumber do
  watch %r{^features/.+\.feature$}
  watch(%r{^features/support/.+$}) { 'features' }

  watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m|
    Dir[File.join("**/#{m[1]}.feature")][0] || 'features'
  end
end

guard :jasmine do
  watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { 'spec/javascripts' }
  watch(%r{spec/javascripts/.+_spec\.(js\.coffee|js|coffee)$})
  watch(%r{spec/javascripts/fixtures/.+$})
  watch(%r{app/assets/javascripts/(.+?)\.(js\.coffee|js|coffee)(?:\.\w+)*$}) { |m| "spec/javascripts/#{ m[1] }_spec.#{ m[2] }" }
end

guard :rspec, cmd: 'bundle exec rspec' do
  require 'guard/rspec/dsl'
  dsl = Guard::RSpec::Dsl.new(self)

  rspec = dsl.rspec
  watch(rspec.spec_helper) { rspec.spec_dir }
  watch(rspec.spec_support) { rspec.spec_dir }
  watch(rspec.spec_files)

  ruby = dsl.ruby
  dsl.watch_spec_files_for(ruby.lib_files)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
skellington-0.4.16 lib/templates/Guardfile.eruby
skellington-0.4.15 lib/templates/Guardfile.eruby
skellington-0.4.13 lib/templates/Guardfile.eruby
skellington-0.4.11 lib/templates/Guardfile.eruby
skellington-0.4.10 lib/templates/Guardfile.eruby
skellington-0.4.9 lib/templates/Guardfile.eruby
skellington-0.4.8 lib/templates/Guardfile.eruby
skellington-0.4.6 lib/templates/Guardfile.eruby
skellington-0.4.5 lib/templates/Guardfile.eruby
skellington-0.4.4 lib/templates/Guardfile.eruby
skellington-0.4.3 lib/templates/Guardfile.eruby
skellington-0.4.2 lib/templates/Guardfile.eruby