Route, Controller, Action | Upcase

In this screencast, Ben and Chris go back to basics and tackle the first exercise in the Rails Fundamentals trail, "Route, Controller, Action". They create a route, controller, and action using TDD to tell them what to write next.
This is a companion discussion topic for the original entry at https://thoughtbot.com/upcase/videos/route-controller-action

@benorenstein I saw you run spec and if it failed it will show in quickfix window, so how do we get it setup?

@samnang Looks like he’s using this plugin: https://github.com/dapplebeforedawn/vim-rspec-quickfix

You can check out Ben’s .vimrc on GitHub here. He’s using Tim Pope’s Dispatch plugin together with thoughtbot’s vim-rspec plugin.

With the example mappings provided, you press leader-t with a spec open, it will RunCurrentSpecFile() , and finally open the quickfix window with the results. Remember to add let g:rspec_command = "Dispatch bin/rspec {spec}" to your .vimrc

Hope this helps!

1 Like