I have a web-based ruby application, which is mainly a large, multi-step form that inserts data into a database.
I want to perform an integration test to verify that all inserted data is correctly saved.
My idea is to create a factory to create a dummy record, insert all data from the form using selenium, and then compare the database to the dummy record.
Is it correct?
I do not like the parts "compare" and "insert" because it adds complexity to the INTERIOR of the test. Should I just hard code all the data?