Generic example or template for RSpec request tests for autogenerated scaffold code

I am just learning RSpec. I generated resources using rails generate scaffold …

I am now creating RSpec tests for the generated code. This is a generic need. Does anyone have an example or template for testing basic requests (get, index, destroy, update, create) in RSpec?

Since the code is autogenerated, I am not planning on creating unit tests, just the request tests. If I add special logic, I will do TDD.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs