Sha256: 26f51c58dfd129b6dc26dc140cef0d8e265803a6ea68598824d40d15c8a01c2d
Contents?: true
Size: 744 Bytes
Versions: 1
Compression:
Stored size: 744 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{^model/(.+)\.rb$}) { |m| "spec/model/#{m[1]}_spec.rb" } watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } # watch(%r{^examples/time_graph/spec/(.+)_spec\.rb$}) watch('spec/spec_helper.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active-orient-0.5 | examples/time_graph/Guardfile |