Sha256: 118c59d9cf6b56a93c0fdab27f65ee401c038a1c9ab123173f8e9b886bd7997d

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

guard :rspec do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^spec/.+_helper\.rb$}) { 'spec' }
  watch(%r{^lib/(.+)\.rb$}) do |match|
    result = "spec/#{ match[1] }_spec.rb"
    loop do
      break if File.exist?(result)
      result = File.dirname(result)
      break if result.empty?
    end
    result
  end
end
# vim: ft=ruby

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apitizer-0.0.2 Guardfile