New ways of cucumber
The answer to this question should be trivial. Is there a way to get into the presentation action path for a given AR object within the cucumber paths. (I am using factories to set AR test objects).
I can link in paths.rb to new ones, edit and index paths, but when it comes to showing the action, it needs to specify an object and there is a way to refer to that object on paths.rb
+2
source to share
1 answer
I'm not sure if I understand the question: would you like to visit the "show" page for a specific instance of the model?
Would it be so similar to this job? (taken from functions /support/paths.rb)
when /the profile page for "([^\"]*)"/
user_path(User.find_by_username($1))
In this case, you will visit the show action (profile page) of the username specified in the script.
+3
source to share