Hi, Just introduced few more chapters in my Ruby on Rails 2.1 tutorial. Most interesting one is Unit Testing of RoR Applications. Just go through it and send me your comments. http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-unit-testing.htm Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mc Mohd wrote:> Just introduced few more chapters in my Ruby on Rails 2.1 tutorial. Most > interesting one is Unit Testing of RoR Applications. > > Just go through it and send me your comments. > > http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-unit-testing.htmTx! Now your verbiage has repeated a common misunderstanding. test case: one ''def test_*'' method that runs one event of testage test suite: a list of test cases with common setup & fixtures the misunderstanding arises when a test suite inherits TestCase. This just means it follows the Interpreter Design - Suite 1-->* Suite 1-->* Case. The test runner instantiates the whole suite once for each time it runs one case. That helps Test Isolation... Now test... - some Views! - some controllers from a misnamed suite. You need: class WhateverTest < ActiveController::TestCase tests MyController ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---