3 ms·
Regarding the testing of views: If using RSpec, there are "view" tests that test rendering the html in isolation. You specify the instance variables (AKA input
by ahuth 11y ago
Regarding the testing of views:
If using RSpec, there are "view" tests that test rendering the html in isolation. You specify the instance variables (AKA input) that the template is expecting, and you test the output. No server request/response is involved.
See https://www.relishapp.com/rspec/rspec-rails/v/2-0/docs/view-specs/view-spec https://www.relishapp.com/rspec/rspec-rails/v/2-0/docs/view-...
- grandalf 11y agoGlad to see that exists... very cool.
- deleted 11y ago[deleted]