forked from MarkUsProject/Markus
-
Notifications
You must be signed in to change notification settings - Fork 1
TestingGuidelines
Nelle Varoquaux edited this page Mar 1, 2011
·
1 revision
Note: This document is outdated. As of December 2009 we have mocha, selenium and cucumber integrated. Lots of available testing tools, which is good. More later...
We use Thoughtbot Shoulda for our testing (see http://thoughtbot.com/projects/shoulda](http://thoughtbot.com/projects/shoulda).
Run the following Rake tasks:
#>rake gems:install #>rake gems:unpack
Multiple Rake tasks are used to run tests:
#>rake db:test:prepare #>rake test #>rake test:units #>...
Very similar to Test::Unit:
require 'shoulda' class QuoteTest < Test::Unit::TestCase def setup # normal Test::Unit setup stuff here end # standard Test::Unit test def test_should_be_true assert true end # shoulda 'should' test should "be true" do assert true end end