ruby on rails 3 - How to write cucumber test? -
I want to write the test to post the edit as I write something:
on the "/ post / 1 / edit" page but at this time I have not recorded with ID = 1, even if I made it in the previous test
How to solve it?
Because it is a test database, you will not know exactly what the id is. I think you are better to follow the edited link from the index after the post is created.
Comments
Post a Comment