I'm using Capybara with webkit for my testing, but for some reason when a test fails it shows the error, but not where it actually occurred in the code.
Failures:
1) online shopping - sign up
Failure/Error: page.should have_content 'Payment added successfully'
expected there to be content "Payment added successfully" in "Internal Server Error undefined method `client_id' for #<InvoicePayment:0x007fbd5b834008> WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20) at 127.0.0.1:60324"
# ./spec/requests/online_shopping_spec.rb:140:in `block (2 levels) in <top (required)>'
and when using save_and_open_page
it'll just show the error, with no information on where it occured:
Internal Server Error
undefined method `client_id' for # WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20) at 127.0.0.1:60324
What I'm expecting to see is the line number and function where the error occured:
app/controllers/invoices_controller.rb:30:in `show'
I can't seem to find anything related to this on Google. I'm probably using incorrect nomenclature. Anybody know how to fix this?