Skip to content

Instantly share code, notes, and snippets.

@urbanautomaton
Created September 2, 2011 12:37
Show Gist options
  • Save urbanautomaton/1188507 to your computer and use it in GitHub Desktop.
Save urbanautomaton/1188507 to your computer and use it in GitHub Desktop.
Guard is now watching at '/Users/simon/dev/tribesports'
Bundle already up-to-date
Starting Spork for RSpec & Cucumber
Using Cucumber
Using RSpec
Preloading Rails environment
Preloading Rails environment
Loading Spork.prefork block...
Loading Spork.prefork block...
Spork is ready and listening on 8989!
Spork is ready and listening on 8990!
Spork server for RSpec & Cucumber successfully started
Guard::RSpec is running, with RSpec 2!
append_path called for: /Users/simon/dev/tribesports
resolved path to: /Users/simon/dev/tribesports
config.sinceWhen 18446744073709551615
config.latency 0.300000
config.flags 00000000
config.paths
/Users/simon/dev/tribesports
FSEventStreamRef @ 0x100108610:
allocator = 0x7fff70424ee0
callback = 0x100001580
context = {0, 0x0, 0x0, 0x0, 0x0}
numPathsToWatch = 1
pathsToWatch = 0x7fff70424ee0
pathsToWatch[0] = '/Users/simon/dev/tribesports'
latestEventId = -1
latency = 300000 (microseconds)
flags = 0x00000000
runLoop = 0x0
runLoopMode = 0x0
FSEventStreamCallback fired!
numEvents: 1
event path: /Users/simon/dev/tribesports/log/
event flags: 00000000
event ID: 163221603
FSEventStreamCallback fired!
numEvents: 1
event path: /Users/simon/dev/tribesports/spec/models/
event flags: 00000000
event ID: 163221673
Running: spec/models/notification_spec.rb
Running tests with args ["--color", "--format", "progress", "--format", "NotificationRSpec", "--out", "/dev/null", "--require", "/Users/simon/.rvm/gems/ruby-1.9.2-p180/gems/guard-rspec-0.4.3/lib/guard/rspec/formatters/notification_rspec.rb", "spec/models/notification_spec.rb"]...
..........
Finished in 1.36 seconds
10 examples, 0 failures
Done.
append_path called for: /Users/simon/dev/tribesports
resolved path to: /Users/simon/dev/tribesports
config.sinceWhen 18446744073709551615
config.latency 0.300000
config.flags 00000000
config.paths
/Users/simon/dev/tribesports
FSEventStreamRef @ 0x100108610:
allocator = 0x7fff70424ee0
callback = 0x100001580
context = {0, 0x0, 0x0, 0x0, 0x0}
numPathsToWatch = 1
pathsToWatch = 0x7fff70424ee0
pathsToWatch[0] = '/Users/simon/dev/tribesports'
latestEventId = -1
latency = 300000 (microseconds)
flags = 0x00000000
runLoop = 0x0
runLoopMode = 0x0
FSEventStreamCallback fired!
numEvents: 1
event path: /Users/simon/dev/tribesports/spec/models/
event flags: 00000000
event ID: 163222080
FSEventStreamCallback fired!
numEvents: 1
event path: /Users/simon/dev/tribesports/spec/models/
event flags: 00000000
event ID: 163222147
require 'guard/guard'
guard 'bundler' do
watch('Gemfile')
end
guard 'spork', :wait => 60, :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.+\.rb$})
watch(%r{^config/initializers/.+\.rb$})
watch('spec/spec_helper.rb')
watch(%r{^test/factories/.+\.rb$})
end
guard 'rspec', :version => 2, :all_after_pass => false, :all_on_start => false do
# Main
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
# Controllers and routing
watch('app/controllers/application_controller.rb') { "spec/controllers" }
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb"] }
watch('config/routes.rb') { "spec/routing" }
# Spec
watch('spec/spec_helper.rb') { "spec" }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
# Capybara request specs
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
end
guard 'cucumber', :cli => "--profile guard", :all_after_pass => false, :all_on_start => false, :change_format => 'pretty' do
watch(%r{^features/.+\.feature$})
watch(%r{^features/support/.+$}) { 'features' }
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment