lib/test/unit/testcase.rb in test-unit-3.0.9 vs lib/test/unit/testcase.rb in test-unit-3.1.0

- old
+ new

@@ -318,22 +318,22 @@ # def test_in_child # end # end # end # - # The diffrence of them are the following: + # The difference of them are the following: # # * Test case created by {sub_test_case} is an anonymous class. # So you can't refer the test case by name. # * The class name of class style must follow # constant naming rule in Ruby. But the name of test case # created by {sub_test_case} doesn't need to follow the rule. # For example, you can use a space in name such as "child test". # # @param name [String] The name of newly created sub test case. # @yield - # The block is evaludated under the newly created sub test + # The block is evaluated under the newly created sub test # case class context. # @return [Test::Unit::TestCase] Created sub test case class. def sub_test_case(name, &block) parent_test_case = self sub_test_case = Class.new(self) do @@ -344,10 +344,10 @@ end sub_test_case.class_eval(&block) sub_test_case end - # Checkes whether a test that is mathched the query is + # Checks whether a test that is matched the query is # defined. # # @option query [String] :path (nil) # the path where a test is defined in. # @option query [Numeric] :line (nil)