Tags
webcam vindaloo version vegan unix unicef trojan todo thinkpad textmate testing tagging syntax svn sugar subversion stubbing sphinx spam spaces solaris sitemap site sinatra shoulda sheet set security search schema_info SchemaInfo ruby rinari restaurant relationships refresh rdiff-backup ramaze railsconf08 railsconf07 rails protools production power placeboeffect pink floyd PIC perl overheat outbreak osx os x NYHS NYC nginx netbeans nested nanophotonics mysql music MPEG-4 mongrel model migration microvolunteer macbook mac logrotate logic log linux less leopard keynote JAX javascript java jacksonville imunizator highlighting hanna Handbrake haml hacks google geocoding genghistron gem gaming gabrielle's funny functional fun friends food fixes fixed firefox FF3 ferretThe Decider said 9 months ago permalink Comment? (0)
Tagged: testing shoulda
Run individual shoulda tests
When you run tests of just one model or controller you usually do something like:
ruby test/unit/evaluation_test.rb
If you want to target just one test you can use the -n option
ruby test/unit/evaluation_test.rb -n test_return_pending_evaluatees_from_composite_group
For shoulda users if you want to target just one test the -n option can also take regular expressions.
ruby test/unit/evaluation_test.rb -v -n "/have many/"
The -v lists the test name before every test, aka verbose mode.