Sha256: a773b11f46cf383b446558643a389c78f0a6f035f6a8a74e80098fc46a7e287b

Contents?: true

Size: 674 Bytes

Versions: 3

Compression:

Stored size: 674 Bytes

Contents

group :specs do
  guard 'rspec',
        :all_after_pass => false,
        :all_on_start => false,
        :cli => '--color --format nested --fail-fast',
        :version => 2 do

    watch(%r{^spec/.+_spec\.rb$})
    watch('spec/spec_helper.rb')                              { "spec" }

    # ex: lib/app_name/views.rb -> spec/app_name/views_spec.rb
    watch(%r{^lib/(.+)/(.+)\.rb$})                                 { |m| "spec/#{m[1]}/#{m[2]}_spec.rb" }

    # ex: lib/app_name/views/view_helper.rb -> spec/app_name/views/view_helper_spec.rb
    watch(%r{^lib/(.+)/(.+)/(.+)\.rb$})                                 { |m| "spec/#{m[1]}/#{m[2]}/#{m[3]}_spec.rb" }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dynabix-0.3.2 Guardfile
dynabix-0.3.1 Guardfile
dynabix-0.3.0 Guardfile