Closed qubist closed 4 years ago
Happy to add tests with help if you think it's needed @lbraun
Oh I found where the tests for this are: in recipients_spec.rb
in the features folder. Looks like it doesn't test order.
Added a test for order :)) figured it out on my own :))
Nice!!! Yeah, feature tests (a.k.a. system tests, integration tests) test everything in a sense because they actually render the page and test what's displayed, so all the pieces (model, view, and controller) have to be working for them to pass.
The downside is that they are slow and not very exact. But I tend to write a lot more feature tests than controller tests.
Excellent @qubist , thank you!!
Used https://stackoverflow.com/questions/12764765/ to learn how sorting like this works.
I didn't add a test for this because there wasn't a recipients_controller test there already and I didn't know how to add one.
Closes #56