Hi all,
I am new to RSpec, currently using rspec-rails (2.1.0) with rails
(2.2.3)
and ruby (1.8.7). I can get RSpec running however the stacktrace when it
happened is pretty uninformative, always not including the line in which
the
assertion failed. I tried to google around for some keywords but doesn’t
seem to yield anything.
Could someone please advice on what can I do to post more informative
stacktrace and results? Thanks.
=========================================================================
1)
‘OrderManager should create an order successfully and returns it if
enough
information is given’ FAILED
expected not: == nil,
got: nil
/home/web/www/bh2/vendor/plugins/rspec/lib/spec/expectations/fail_with.rb:41:in
fail_with' /home/web/www/bh2/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb:39:infail_with_message’
/home/web/www/bh2/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb:72:in
__delegate_operator' /home/web/www/bh2/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb:51:ineval_match’
/home/web/www/bh2/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb:29:in
==' /home/web/www/bh2/vendor/plugins/rspec/lib/spec/example/example_methods.rb:40:ininstance_eval’
/home/web/www/bh2/vendor/plugins/rspec/lib/spec/example/example_methods.rb:40:in
execute' /home/web/www/bh2/vendor/plugins/rspec/lib/spec/example/example_methods.rb:37:inexecute’
/home/web/www/bh2/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:214:in
run_examples' /home/web/www/bh2/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:212:ineach’
/home/web/www/bh2/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:212:in
run_examples' /home/web/www/bh2/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:103:inrun’
/home/web/www/bh2/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:23:in
run' /home/web/www/bh2/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:22:ineach’
/home/web/www/bh2/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:22:in
run' /home/web/www/bh2/vendor/plugins/rspec/lib/spec/runner/options.rb:151:inrun_examples’
/home/web/www/bh2/vendor/plugins/rspec/lib/spec/runner/command_line.rb:9:in
`run’
script/spec:10:
Finished in 0.132014 seconds
Thank you.