Skip to content

Instantly share code, notes, and snippets.

@thoraxe
Created July 16, 2013 14:46
Show Gist options
  • Save thoraxe/6009398 to your computer and use it in GitHub Desktop.
Save thoraxe/6009398 to your computer and use it in GitHub Desktop.
rake test failure when running locally
$ rake ci:setup:rspec spec RAILS_ENV=test
rm -rf spec/reports
/usr/bin/ruby -S rspec ./spec/test_spec.rb
F
Failures:
1) Hello World says hello
Failure/Error: page.should have_content('hello')
expected #has_content?("hello") to return true, got false
# ./spec/test_spec.rb:10:in `block (2 levels) in <top (required)>'
Finished in 0.02346 seconds
1 example, 1 failure
Failed examples:
rspec ./spec/test_spec.rb:8 # Hello World says hello
Failures:
1) Hello World says hello
Failure/Error: page.should have_content('hello')
expected #has_content?("hello") to return true, got false
# ./spec/test_spec.rb:10:in `block (2 levels) in <top (required)>'
rake aborted!
/usr/bin/ruby -S rspec ./spec/test_spec.rb failed
/home/thoraxe/.gem/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:156:in `run_task'
/home/thoraxe/.gem/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:124:in `block (2 levels) in initialize'
/home/thoraxe/.gem/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:122:in `block in initialize'
Tasks: TOP => spec
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment