Next: Level Up on Everything

You learned a ton in this chapter about testing our Rails application at every level of the stack. Now that you can test anything from database constraints to JavaScript functions to end-to-end user interactions, you’re ready to move on to more complex features.

Now it’s time to up our game on everything. Over the next several chapters, you’ll build a complex customer detail view. This will be a great chance to learn how to design a dense UI with Bootstrap, wrangle multiple data sources with Angular, and optimize complex queries inside Postgres. But first, we need to turn our simple search screen into a single-page app by learning about Angular’s router and navigation services.

Footnotes

[46]

http://phantomjs.org

[47]

https://github.com/jnicklas/capybara

[48]

https://github.com/teampoltergeist/poltergeist

[49]

http://phantomjs.org/download.html

[50]

http://en.wikipedia.org/wiki/Database_transaction

[51]

https://github.com/DatabaseCleaner/database_cleaner

[52]

https://www.relishapp.com/rspec/rspec-core/v/3-2/docs/hooks/before-and-after-hooks

[53]

http://guides.rubyonrails.org/testing.html#the-low-down-on-fixtures

[54]

http://www.rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Finders#find-instance_method

[55]

http://www.rubydoc.info/github/jnicklas/capybara/master/Capybara/Session#save_screenshot-instance_method

[56]

https://jasmine.github.io

[57]

https://github.com/testdouble/testdouble.js