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

Popular posts from this blog

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -