http://www.meetup.com/IsraelRubyUnderground/events/24126891/
The presentation was given in the last Israeli Ruby on Rails meetup. It gives a short overview for the latest testing technique in Rails 3.x.
14. 8/22/2011 test/unit: Unit-tests in rails are model-tests Logical assertions of our applicationâs business logic Should include at list one test method for every method in the model
16. 8/22/2011 test/unit/test_helper.rb: Define ActiveSupport::TestCase class which is the base class for each test (not only unit) Requires by each of the test files Switch to RAILS_ENV = âtestâ Brings us assertions from test test/unit
23. 8/22/2011 Before running the tests: $ rake db:migrate runs any pending migrations on the development environment and updatesdb/schema.rb $ rake db:test:load recreates the test database from the current db/schema.rb