Answer the question
In order to leave comments, you need to log in
How to test with Rspec view of non static page?
It is easy to test a static page, let's say root_path, apply capybara and see what elements are on the page.
But if the elements say blocks of text are not static and the element, the "show more" button
depends on the data available in the database.
Fill the test database with data and work as with a static database, but I think this is not very beautiful.
Or apply factories, which is correct?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question