A quick episode that goes over refactoring the routes in the app using TDD.

This episode covers:

  • Creating namespaces in Rails routes
  • Making adjustments to existing specs

Also, here’s how to make it so that API works for the controller modules.

View the code.

View the diff.

View the playlist.

Software used:

  • Ruby 2.4.2
  • RSpec 3.6.1
  • Capybara 2.15.4
  • Rails 5.1.4
  • Mac OS
  • iTerm 2
  • Vim
  • Tmux