Sha256: faf8a04eed2a0da15eab829e53b94649312b3924b9d84da377216f04ead9bbf8

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

guard :rspec, cmd: 'bundle exec 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.3 Guardfile