Sha256: e33e561f11f3bcd31225e5c2ea0eb7de4f825b5c930f8b2c3dedc67aaf63796c
Contents?: true
Size: 833 Bytes
Versions: 4
Compression:
Stored size: 833 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/strong_presenter 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
strong_presenter-0.2.2 | Guardfile |
strong_presenter-0.2.1 | Guardfile |
strong_presenter-0.2.0 | Guardfile |
strong_presenter-0.1.0 | Guardfile |