I am trying to learn TDD and BDD and do it right. The stack that I use (or try to use, Spork does not work with Guard for me) is Minitest-Guard-Spork-Capybara. I focus on Unit Tests for models and specifications for integration tests.
There are a lot of Ajax in this application. I just did save_and_open_pageone of my tests, and of course the page looked awful because it could not find any of the assets.
My question is, should I test JS functionality, do I need to precompile the assets every time to check them, or is there some way that the default mode for dev is for testing purposes.
I am sure this is a question of n00b, but the one where I am testing. Trying to do it right.
source
share