aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/caching_test.rb2
-rw-r--r--actionpack/test/controller/components_test.rb2
-rw-r--r--actionpack/test/controller/cookie_test.rb8
-rw-r--r--actionpack/test/controller/routing_test.rb2
-rw-r--r--actionpack/test/controller/selector_test.rb2
-rw-r--r--actionpack/test/controller/test_test.rb4
6 files changed, 10 insertions, 10 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index 6aab2e8dce..f3cf66232f 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -2,7 +2,7 @@ require 'fileutils'
require File.dirname(__FILE__) + '/../abstract_unit'
CACHE_DIR = 'test_cache'
-# Don't change '/../temp/' cavalierly or you might hoze something you don't want hozed
+# Don't change '/../temp/' cavalierly or you might hose something you don't want hosed
FILE_STORE_PATH = File.join(File.dirname(__FILE__), '/../temp/', CACHE_DIR)
ActionController::Base.page_cache_directory = FILE_STORE_PATH
ActionController::Base.fragment_cache_store = :file_store, FILE_STORE_PATH
diff --git a/actionpack/test/controller/components_test.rb b/actionpack/test/controller/components_test.rb
index c046cf045a..debd8a2742 100644
--- a/actionpack/test/controller/components_test.rb
+++ b/actionpack/test/controller/components_test.rb
@@ -127,7 +127,7 @@ class ComponentsTest < Test::Unit::TestCase
test_internal_calling
end
- def test_component_as_string_redirect_renders_redirecte_action
+ def test_component_as_string_redirect_renders_redirected_action
get :calling_redirected_as_string
assert_equal "Lady of the House, speaking", @response.body
diff --git a/actionpack/test/controller/cookie_test.rb b/actionpack/test/controller/cookie_test.rb
index 6a88517582..6722711c56 100644
--- a/actionpack/test/controller/cookie_test.rb
+++ b/actionpack/test/controller/cookie_test.rb
@@ -6,11 +6,11 @@ class CookieTest < Test::Unit::TestCase
cookies["user_name"] = "david"
end
- def authenticate_for_fourten_days
+ def authenticate_for_fourteen_days
cookies["user_name"] = { "value" => "david", "expires" => Time.local(2005, 10, 10) }
end
- def authenticate_for_fourten_days_with_symbols
+ def authenticate_for_fourteen_days_with_symbols
cookies[:user_name] = { :value => "david", :expires => Time.local(2005, 10, 10) }
end
@@ -55,12 +55,12 @@ class CookieTest < Test::Unit::TestCase
end
def test_setting_cookie_for_fourteen_days
- get :authenticate_for_fourten_days
+ get :authenticate_for_fourteen_days
assert_equal [ CGI::Cookie::new("name" => "user_name", "value" => "david", "expires" => Time.local(2005, 10, 10)) ], @response.headers["cookie"]
end
def test_setting_cookie_for_fourteen_days_with_symbols
- get :authenticate_for_fourten_days
+ get :authenticate_for_fourteen_days
assert_equal [ CGI::Cookie::new("name" => "user_name", "value" => "david", "expires" => Time.local(2005, 10, 10)) ], @response.headers["cookie"]
end
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb
index d1e829390b..fba5512a2b 100644
--- a/actionpack/test/controller/routing_test.rb
+++ b/actionpack/test/controller/routing_test.rb
@@ -766,7 +766,7 @@ class DynamicSegmentTest < Test::Unit::TestCase
eval(segment.expiry_statement)
rescue RuntimeError
- flunk "Expiry check should not have occured!"
+ flunk "Expiry check should not have occurred!"
end
def test_expiry_should_occur_according_to_expire_on
diff --git a/actionpack/test/controller/selector_test.rb b/actionpack/test/controller/selector_test.rb
index aa91de294e..6ae46594ae 100644
--- a/actionpack/test/controller/selector_test.rb
+++ b/actionpack/test/controller/selector_test.rb
@@ -177,7 +177,7 @@ class SelectorTest < Test::Unit::TestCase
assert_equal 2, @matches.size
assert_equal "foo", @matches[0].attributes["href"]
assert_equal "baz", @matches[1].attributes["href"]
- # And now for the three selector challange.
+ # And now for the three selector challenge.
parse(%Q{<h1 id="1"><a href="foo"></a></h1><h2 id="2"><a href="bar"></a></h2><h3 id="2"><a href="baz"></a></h3>})
select("h1 a, h2 a, h3 a")
assert_equal 3, @matches.size
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb
index 8a57f37b68..018b342b68 100644
--- a/actionpack/test/controller/test_test.rb
+++ b/actionpack/test/controller/test_test.rb
@@ -225,9 +225,9 @@ XML
def test_assert_tag_before
process :test_html_output
- # there is a tag preceeding a tag with id 'bar'
+ # there is a tag preceding a tag with id 'bar'
assert_tag :before => { :attributes => { :id => "bar" } }
- # there is no tag preceeding a 'form' tag
+ # there is no tag preceding a 'form' tag
assert_no_tag :before => { :tag => "form" }
end