diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-28 14:18:47 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-28 14:18:47 +0000 |
commit | e3b49c052b497827c9f058feaa066bbfe184f4da (patch) | |
tree | 4224be14c405d38f7a8911f52360bdd0150673ce /actionpack/test | |
parent | 7cb1f93bcccb2fe476c85e4df71eea06db9a3a5b (diff) | |
download | rails-e3b49c052b497827c9f058feaa066bbfe184f4da.tar.gz rails-e3b49c052b497827c9f058feaa066bbfe184f4da.tar.bz2 rails-e3b49c052b497827c9f058feaa066bbfe184f4da.zip |
Fixed spelling errors (closes #9706) [tarmo/rmm5t]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/activerecord/active_record_store_test.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/components_test.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/cookie_test.rb | 8 | ||||
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/selector_test.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/test_test.rb | 4 | ||||
-rw-r--r-- | actionpack/test/template/prototype_helper_test.rb | 16 |
8 files changed, 19 insertions, 19 deletions
diff --git a/actionpack/test/activerecord/active_record_store_test.rb b/actionpack/test/activerecord/active_record_store_test.rb index d9d03f4492..707a0a75cc 100644 --- a/actionpack/test/activerecord/active_record_store_test.rb +++ b/actionpack/test/activerecord/active_record_store_test.rb @@ -53,7 +53,7 @@ class ActiveRecordStoreTest < ActiveRecordTestCase @new_session['foo'] = 'bar' end -# this test only applies for eager sesssion saving +# this test only applies for eager session saving # def test_another_instance # @another = CGI::Session.new(@cgi, 'session_id' => @new_session.session_id, 'database_manager' => CGI::Session::ActiveRecordStore) # assert_equal @new_session.session_id, @another.session_id 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 diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb index 7bb4245c58..48f947910f 100644 --- a/actionpack/test/template/prototype_helper_test.rb +++ b/actionpack/test/template/prototype_helper_test.rb @@ -83,14 +83,14 @@ class PrototypeHelperTest < Test::Unit::TestCase def test_link_to_remote assert_dom_equal %(<a class=\"fine\" href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true}); return false;\">Remote outauthor</a>), link_to_remote("Remote outauthor", { :url => { :action => "whatnot" }}, { :class => "fine" }) - assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onComplete:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>), - link_to_remote("Remote outauthor", :complete => "alert(request.reponseText)", :url => { :action => "whatnot" }) - assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onSuccess:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>), - link_to_remote("Remote outauthor", :success => "alert(request.reponseText)", :url => { :action => "whatnot" }) - assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>), - link_to_remote("Remote outauthor", :failure => "alert(request.reponseText)", :url => { :action => "whatnot" }) - assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot?a=10&b=20', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.reponseText)}}); return false;\">Remote outauthor</a>), - link_to_remote("Remote outauthor", :failure => "alert(request.reponseText)", :url => { :action => "whatnot", :a => '10', :b => '20' }) + assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onComplete:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>), + link_to_remote("Remote outauthor", :complete => "alert(request.responseText)", :url => { :action => "whatnot" }) + assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onSuccess:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>), + link_to_remote("Remote outauthor", :success => "alert(request.responseText)", :url => { :action => "whatnot" }) + assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>), + link_to_remote("Remote outauthor", :failure => "alert(request.responseText)", :url => { :action => "whatnot" }) + assert_dom_equal %(<a href=\"#\" onclick=\"new Ajax.Request('http://www.example.com/whatnot?a=10&b=20', {asynchronous:true, evalScripts:true, onFailure:function(request){alert(request.responseText)}}); return false;\">Remote outauthor</a>), + link_to_remote("Remote outauthor", :failure => "alert(request.responseText)", :url => { :action => "whatnot", :a => '10', :b => '20' }) end def test_link_to_remote_html_options |