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.
https://www.relishapp.com/rspec/rspec-core/v/3-2/docs/hooks/before-and-after-hooks
http://guides.rubyonrails.org/testing.html#the-low-down-on-fixtures
http://www.rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Finders#find-instance_method