Open softwaresteph opened 5 years ago
Someone pick a favorite javascript testing framework.
If you want JS unit testing then we can use whatever JS testing framework is cool these days. I've never had much luck with JS unit testing.
The tests you are describing should be covered using Capybara/Feature/Integration tests -> https://semaphoreci.com/community/tutorials/integration-testing-ruby-on-rails-with-minitest-and-capybara
There are lots of different ways to configure these types, so it will require investigating how to hook everything up for MiniTest and Rails 4, because a lot of the information out there is for RSpec and/or Rails 5 which has System Tests baked in.
Problem
Had a tutoring session with Sam Bleckley and this was our conclusion:
Solution
Add a javascript testing framework that can do both unit tests and integration tests.
Once implemented, create these tests