From 2af36bbbd4c5a9967e5f3b4263100ef793aee4d7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 5 Dec 2007 18:54:41 +0000 Subject: Fix typos (closes #10378) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/routing_test.rb | 4 ++-- actionpack/test/controller/selector_test.rb | 4 ++-- actionpack/test/controller/test_test.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'actionpack/test') diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index e784244c88..8f3709de3d 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -882,14 +882,14 @@ class DynamicSegmentTest < Test::Unit::TestCase end def test_build_pattern_non_optional_with_no_captures - # Non optioanl + # Non optional a_segment = ROUTING::DynamicSegment.new a_segment.regexp = /\d+/ #number_of_captures is 0 assert_equal "(\\d+)stuff", a_segment.build_pattern('stuff') end def test_build_pattern_non_optional_with_captures - # Non optioanl + # Non optional a_segment = ROUTING::DynamicSegment.new a_segment.regexp = /(\d+)(.*?)/ #number_of_captures is 2 assert_equal "((\\d+)(.*?))stuff", a_segment.build_pattern('stuff') diff --git a/actionpack/test/controller/selector_test.rb b/actionpack/test/controller/selector_test.rb index 6ae46594ae..ca106ba236 100644 --- a/actionpack/test/controller/selector_test.rb +++ b/actionpack/test/controller/selector_test.rb @@ -85,11 +85,11 @@ class SelectorTest < Test::Unit::TestCase assert_equal 2, @matches.size assert_equal "2", @matches[0].attributes["id"] assert_equal "3", @matches[1].attributes["id"] - # Match alement with attribute value. + # Match element with attribute value. select("*[title=foo]") assert_equal 1, @matches.size assert_equal "3", @matches[0].attributes["id"] - # Match alement with attribute and attribute value. + # Match element with attribute and attribute value. select("[bar=foo][title]") assert_equal 1, @matches.size assert_equal "2", @matches[0].attributes["id"] diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb index 8fbe980eec..9b90d69e95 100644 --- a/actionpack/test/controller/test_test.rb +++ b/actionpack/test/controller/test_test.rb @@ -214,7 +214,7 @@ XML def test_assert_tag_descendant process :test_html_output - # there is a tag with a decendant 'li' tag + # there is a tag with a descendant 'li' tag assert_tag :descendant => { :tag => "li" } # there is no tag with a descendant 'html' tag assert_no_tag :descendant => { :tag => "html" } -- cgit v1.2.3