I’ve a controller that defines the @projects variables to be displayed in the view.
There is any way to access to that projects in the cucumber step?
Note that this variables contains the paginated results, the idea is to test if the values are being displayed in the page.
I’ve tried to access the variable through assigns and controller but they are both nill.
Thanks.
The way you would generally handle this is in Cucumber is by testing the output directly.
So:
You should not need to access controller variables from Cucumber features, as Cucumber is designed to emulate your users’ experience on your site and users don’t have direct access to controllers either.