Sha256: f24a6ae5af318bf5631cb0c43511b169d885278f56fb34ef77a14fdfd15e8095

Contents?: true

Size: 823 Bytes

Versions: 11

Compression:

Stored size: 823 Bytes

Contents

def rspec_guard(options = {}, &block)
  options = {
    :version => 2,
    :notification => false
  }.merge(options)

  guard 'rspec', options, &block
end

rspec_guard :spec_paths => %w{spec/draper spec/generators} do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb')  { "spec" }
end

rspec_guard :spec_paths => 'spec/integration', :env => {'RAILS_ENV' => 'development'} do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb')  { "spec" }
end

rspec_guard :spec_paths => 'spec/integration', :env => {'RAILS_ENV' => 'production'} do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb')  { "spec" }
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
draper-3.0.0.pre1 Guardfile
draper_new-3.0.0 Guardfile
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/draper-2.1.0/Guardfile
draper-2.1.0 Guardfile
draper-2.0.0 Guardfile
draper-1.4.0 Guardfile
draper-1.3.1 Guardfile
draper-1.3.0 Guardfile
draper-1.2.1 Guardfile
draper-1.2.0 Guardfile
jamesgolick-draper-1.1.1a Guardfile