Running Test Case for particular files in Rails 3
>> rails sample -d mysql
>> cd sample
>> rails g scaffold User name:string email:string
>> rake db:create:all
>> rake db:migrate
To run the particular test case i.e. user_test.rb use the following steps.
>> ruby -Itest test\unit\user_test.rb
Loaded suite test/unit/user_test Started . Finished in 3.868800 seconds.
1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
Test run options: --seed 57429











