Sha256: 343d29f9f55363bb5e4b1b7bb3ffe2746c6780a463f9bbbe87648f02266d6730

Contents?: true

Size: 579 Bytes

Versions: 3

Compression:

Stored size: 579 Bytes

Contents

guard :minitest, all_on_start: false do
  watch(%r{^test/(.*)\/?.*_test\.rb$})
  watch(%r{^lib/(.*/)?([^/]+)\.rb$})     { |m| "test/#{m[1]}#{m[2]}_test.rb" }
  watch(%r{^test/test_helper\.rb$})      { "test" }
end

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

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

  # Ruby files
  ruby = dsl.ruby
  dsl.watch_spec_files_for(ruby.lib_files)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
museo-0.3.0 Guardfile
museo-0.2.0 Guardfile
museo-0.1.0 Guardfile