I wonder how should I test rails api with dredd, specially the show and index actions(/post{id} and /post)
- Should I fill my database with records before running dredd, I mean creating record post with id: 1 and so on?
- Does dredd always trying to get object with id: 1 ( /post/1 )?
I found example project https://github.com/theodorton/dredd-test-rails but there is only one method(post) described in apib file https://github.com/theodorton/dredd-test-rails/blob/master/apiary.apib