Well, my pain continues :)
This is the weird situation
When I comment the scenario which uses culerity, then my rake cucumber result is:
4 scenarios (4 passed)
18 steps (18 passed)
However when I run the culerity scenario with all, I get:
5 scenarios (3 failed, 2 passed)
36 steps (1 failed, 16 skipped, 19 passed)
How can a scenario that was passing then fail with the introduction on a new scenario which uses culerity?
The error which results on the second run occurs on the same line:
Now the same line: visit("/login?account_name=#{URI.escape(
user.account.name)}")
And note, it happens regardless of the url I place (I have tried without the query string '/login', as below, with 'http://localhost:3000...' and even '
http://www.google.com'). And it is isolated to using culerity as when I comment the scenario which calls it, the same step succeeds fine.
The error output is:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.first (NoMethodError)
./features/step_definitions/login_steps.rb:18:in `/^I am logged in as a lender user$/'
features/comparison.feature:24:in `Given I am logged in as a lender user'
Thanks again,
David