Sha256: 69faaa63f33d7d3d69916653fba9a9498d56acbe3cc01745ebcae5b614ed4d76

Contents?: true

Size: 781 Bytes

Versions: 4

Compression:

Stored size: 781 Bytes

Contents

# A sample Guardfile
# More info at https://github.com/guard/guard#readme
def fire
  require "ostruct"

  # Generic Ruby apps
  rspec = OpenStruct.new
  rspec.spec = ->(m) { "spec/#{m}_spec.rb" }
  rspec.spec_dir = "spec"
  rspec.spec_helper = "spec/spec_helper.rb"


  watch(%r{^spec/.+_spec\.rb$})
#  watch(%r{^spec/usecase/(.+)\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }
#  watch(%r{^examples/time_graph/spec/(.+)_spec\.rb$}) 
  watch('examples/time_graph/spec/create_time_spec.rb') 
  watch('spec/spec_helper.rb')  { "spec" }

  watch(%r{^spec/support/(.+)\.rb$})  { "spec" }
end


interactor :simple
if RUBY_PLATFORM == 'java' 
guard( 'jruby-rspec') {fire}  #', :spec_paths => ["spec"]
else
guard( :rspec, cmd: "bundle exec rspec") { fire }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active-orient-0.80 Guardfile
active-orient-0.79 Guardfile
active-orient-0.6 Guardfile
active-orient-0.5 Guardfile