/ Published in: Bash

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# simple wrappers for running unit and functional tests in rails apps # INSTEAD OF : ruby test/unit/user_test.rb # DO THIS : test_unit user test_unit () { if [[ -n "$1" ]]; then ruby test/unit/$1_test.rb; else "USAGE : test_unit [name_of_test]" fi } # INSTEAD OF : ruby test/functional/users_controller_test.rb # DO THIS : test_func user test_func () { if [[ -n "$1" ]]; then ruby test/functional/$1_controller_test.rb; else "USAGE : test_func [name_of_test]" fi }
Comments
