Skip to content

Instantly share code, notes, and snippets.

@cupakromer
Created September 8, 2012 21:17
Show Gist options
  • Save cupakromer/3679840 to your computer and use it in GitHub Desktop.
Save cupakromer/3679840 to your computer and use it in GitHub Desktop.
Guard double test run
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'rspec', :version => 2 do
watch(%r{^spec/.+_spec\.rb$})
end
$ guard --debug
Guard here! It looks like your project has a Gemfile, yet you are running
`guard` outside of Bundler. If this is your intent, feel free to ignore this
message. Otherwise, consider using `bundle exec guard` to ensure your
dependencies are loaded correctly.
(You can run `guard` with --no-bundler-warning to get rid of this message.)
DEBUG (17:09:42): Command execution: growlnotify --version
DEBUG (17:09:42): Command execution: emacsclient --eval '1' 2> /dev/null || echo 'N/A'
Guard could not detect any of the supported notification libraries.
Guard is now watching at '/Users/aaron/dev/project'
DEBUG (17:09:42): Hook :start_begin executed for Guard::RSpec
Guard::RSpec is running, with RSpec 2!
Running all specs
DEBUG (17:09:42): Command execution: bundle exec rspec --help
DEBUG (17:09:43): Command execution: bundle exec rspec -f progress -r /Users/aaron/.rvm/gems/ruby-1.9.3-p194@project/gems/guard-rspec-1.2.1/lib/guard/rspec/formatters/notification_rspec.rb -f Guard::RSpec::Formatter::NotificationRSpec --out /dev/null --failure-exit-code 2 spec
*.FF.FFF..FFFFFFFF*FF.F.FF.FFF.FFFFFF.FFF.FFFFFF.F.FFF..F.FFFFFFFFFFFFF...F....FFFFFF.F.F.*FF....FF*......FFF...........FFF..*.............
Pending:
...snip...
Failures:
...snip...
Randomized with seed 3268
DEBUG (17:09:51): Start interactor
[Listen warning]:
Listen will be polling changes. Learn more at https://github.com/guard/listen#polling-fallback.
DEBUG (17:09:52): Stop interactor
DEBUG (17:09:52): Start interactor
DEBUG (17:10:27): Stop interactor
DEBUG (17:10:27): Trying to run Guard::RSpec#run_on_modifications with ["spec/controllers/searches_controller_spec.rb"]
DEBUG (17:10:27): Hook :run_on_changes_begin executed for Guard::RSpec
Running: spec/controllers/searches_controller_spec.rb
DEBUG (17:10:27): Command execution: bundle exec rspec -f progress -r /Users/aaron/.rvm/gems/ruby-1.9.3-p194@project/gems/guard-rspec-1.2.1/lib/guard/rspec/formatters/notification_rspec.rb -f Guard::RSpec::Formatter::NotificationRSpec --out /dev/null --failure-exit-code 2 spec/controllers/searches_controller_spec.rb
FF
Failures:
1) SearchesController#show when logged in
Failure/Error: @user = create(:user)
NoMethodError:
undefined method `create' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1::Nested_1:0x007ffb7f56efc8>
# ./spec/controllers/searches_controller_spec.rb:10:in `block (4 levels) in <top (required)>'
2) SearchesController#show when not logged in
Failure/Error: before { @search = create(:search) }
NoMethodError:
undefined method `create' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1::Nested_2:0x007ffb7f3d1f08>
# ./spec/controllers/searches_controller_spec.rb:23:in `block (4 levels) in <top (required)>'
Finished in 0.00735 seconds
2 examples, 2 failures
Failed examples:
rspec ./spec/controllers/searches_controller_spec.rb:14 # SearchesController#show when logged in
rspec ./spec/controllers/searches_controller_spec.rb:24 # SearchesController#show when not logged in
Randomized with seed 37456
DEBUG (17:10:33): Start interactor
DEBUG (17:10:33): Stop interactor
DEBUG (17:10:33): Trying to run Guard::RSpec#run_on_modifications with ["spec/controllers/searches_controller_spec.rb"]
DEBUG (17:10:33): Hook :run_on_changes_begin executed for Guard::RSpec
Running: spec/controllers/searches_controller_spec.rb
DEBUG (17:10:33): Command execution: bundle exec rspec -f progress -r /Users/aaron/.rvm/gems/ruby-1.9.3-p194@project/gems/guard-rspec-1.2.1/lib/guard/rspec/formatters/notification_rspec.rb -f Guard::RSpec::Formatter::NotificationRSpec --out /dev/null --failure-exit-code 2 spec/controllers/searches_controller_spec.rb
FF
Failures:
1) SearchesController#show when logged in
Failure/Error: @user = create(:user)
NoMethodError:
undefined method `create' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1::Nested_1:0x007f9ecd7b3158>
# ./spec/controllers/searches_controller_spec.rb:10:in `block (4 levels) in <top (required)>'
2) SearchesController#show when not logged in
Failure/Error: before { @search = create(:search) }
NoMethodError:
undefined method `create' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1::Nested_2:0x007f9ecc58a918>
# ./spec/controllers/searches_controller_spec.rb:23:in `block (4 levels) in <top (required)>'
Finished in 0.00775 seconds
2 examples, 2 failures
Failed examples:
rspec ./spec/controllers/searches_controller_spec.rb:14 # SearchesController#show when logged in
rspec ./spec/controllers/searches_controller_spec.rb:24 # SearchesController#show when not logged in
Randomized with seed 60138
DEBUG (17:10:40): Start interactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment