jasonm / zsh-rails-test-spec-shortcuts
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
Jason Morrison (author)
Mon May 18 20:32:06 -0700 2009
README
ruby_test and .zshrc lines by Joe Ferris http://github.com/jferris ruby_spec adapted from ruby_test by Jason Morrison http://github.com/jasonm Add the lines in homedir/.zshrc to your .zshrc, and then ensure that homedir/bin/ruby_test and homedir/bin/ruby_spec are available on your path (perhaps in ~/bin). Then, use tu/tf/ti for: ruby -Itest test/unit ruby -Itest test/functional ruby -Itest test/integration and spm/spc/spv to complete: spec -cfs spec/models spec -cfs spec/views spec -cfs spec/controllers like this: [~/dev/railsapp] $ spc a<Tab> admin/base_controller admin/events_controller application_controller [~/dev/railsapp] $ spc app<Tab> admin/base_controller admin/events_controller application_controller [~/dev/railsapp] $ spc application_controller<Enter> admin/base_controller admin/events_controller application_controller spec -cfs spec/ontrollers/application_controller_spec.rb # ta-da! You can specify multiple files on a line. ruby_spec has "spec -cfs" hardcoded as the params, which runs spec with colors and specdoc formatting.

