actionpack 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionpack might be problematic. Click here for more details.

Files changed (84) hide show
  1. data/CHANGELOG +66 -0
  2. data/README +94 -64
  3. data/install.rb +1 -20
  4. data/lib/action_controller.rb +15 -7
  5. data/lib/action_controller/assertions/action_pack_assertions.rb +56 -3
  6. data/lib/action_controller/base.rb +137 -64
  7. data/lib/action_controller/caching.rb +11 -11
  8. data/lib/action_controller/cgi_ext/cgi_ext.rb +2 -2
  9. data/lib/action_controller/cgi_ext/raw_post_data_fix.rb +4 -4
  10. data/lib/action_controller/cgi_process.rb +9 -1
  11. data/lib/action_controller/components.rb +73 -0
  12. data/lib/action_controller/cookies.rb +1 -1
  13. data/lib/action_controller/dependencies.rb +6 -1
  14. data/lib/action_controller/filters.rb +1 -1
  15. data/lib/action_controller/flash.rb +3 -3
  16. data/lib/action_controller/helpers.rb +17 -21
  17. data/lib/action_controller/layout.rb +2 -2
  18. data/lib/action_controller/request.rb +16 -6
  19. data/lib/action_controller/rescue.rb +15 -3
  20. data/lib/action_controller/routing.rb +304 -0
  21. data/lib/action_controller/scaffolding.rb +10 -12
  22. data/lib/action_controller/session/active_record_store.rb +4 -7
  23. data/lib/action_controller/session/mem_cache_store.rb +2 -2
  24. data/lib/action_controller/templates/rescues/_request_and_response.rhtml +9 -1
  25. data/lib/action_controller/templates/rescues/diagnostics.rhtml +1 -1
  26. data/lib/action_controller/templates/rescues/routing_error.rhtml +8 -0
  27. data/lib/action_controller/test_process.rb +29 -7
  28. data/lib/action_controller/url_rewriter.rb +28 -112
  29. data/lib/action_view.rb +1 -1
  30. data/lib/action_view/base.rb +44 -17
  31. data/lib/action_view/helpers/active_record_helper.rb +1 -1
  32. data/lib/action_view/helpers/asset_tag_helper.rb +59 -0
  33. data/lib/action_view/helpers/date_helper.rb +24 -13
  34. data/lib/action_view/helpers/form_helper.rb +6 -1
  35. data/lib/action_view/helpers/form_options_helper.rb +87 -9
  36. data/lib/action_view/helpers/form_tag_helper.rb +80 -0
  37. data/lib/action_view/helpers/tag_helper.rb +0 -23
  38. data/lib/action_view/helpers/text_helper.rb +26 -1
  39. data/lib/action_view/helpers/url_helper.rb +29 -35
  40. data/lib/action_view/partials.rb +2 -2
  41. data/lib/action_view/vendor/builder/xmlbase.rb +3 -3
  42. data/rakefile +5 -2
  43. data/test/abstract_unit.rb +3 -1
  44. data/test/controller/action_pack_assertions_test.rb +29 -1
  45. data/test/controller/active_record_assertions_test.rb +109 -101
  46. data/test/controller/base_tests.rb +72 -0
  47. data/test/controller/components_test.rb +74 -0
  48. data/test/controller/cookie_test.rb +0 -9
  49. data/test/controller/custom_handler_test.rb +33 -0
  50. data/test/controller/filters_test.rb +36 -0
  51. data/test/controller/helper_test.rb +27 -10
  52. data/test/controller/redirect_test.rb +23 -31
  53. data/test/controller/render_test.rb +81 -66
  54. data/test/controller/request_test.rb +22 -0
  55. data/test/controller/routing_tests.rb +490 -0
  56. data/test/controller/{url_test.rb → url_obsolete.rb} +24 -14
  57. data/test/controller/url_obsolete.rb.rej +747 -0
  58. data/test/fixtures/fun/games/hello_world.rhtml +1 -0
  59. data/test/fixtures/helpers/fun/games_helper.rb +3 -0
  60. data/test/template/asset_tag_helper_test.rb +45 -0
  61. data/test/template/form_options_helper_test.rb +161 -1
  62. data/test/template/form_tag_helper_test.rb +22 -0
  63. data/test/template/text_helper_test.rb +7 -0
  64. data/test/template/url_helper_test.rb +5 -2
  65. data/test/template/url_helper_test.rb.rej +105 -0
  66. metadata +32 -27
  67. data/lib/action_controller/support/binding_of_caller.rb +0 -83
  68. data/lib/action_controller/support/breakpoint.rb +0 -518
  69. data/lib/action_controller/support/class_attribute_accessors.rb +0 -57
  70. data/lib/action_controller/support/class_inheritable_attributes.rb +0 -117
  71. data/lib/action_controller/support/clean_logger.rb +0 -10
  72. data/lib/action_controller/support/core_ext.rb +0 -1
  73. data/lib/action_controller/support/core_ext/hash.rb +0 -5
  74. data/lib/action_controller/support/core_ext/hash/keys.rb +0 -35
  75. data/lib/action_controller/support/core_ext/numeric.rb +0 -7
  76. data/lib/action_controller/support/core_ext/numeric/bytes.rb +0 -33
  77. data/lib/action_controller/support/core_ext/numeric/time.rb +0 -59
  78. data/lib/action_controller/support/core_ext/object_and_class.rb +0 -24
  79. data/lib/action_controller/support/core_ext/string.rb +0 -5
  80. data/lib/action_controller/support/core_ext/string/inflections.rb +0 -45
  81. data/lib/action_controller/support/dependencies.rb +0 -63
  82. data/lib/action_controller/support/inflector.rb +0 -84
  83. data/lib/action_controller/support/misc.rb +0 -8
  84. data/lib/action_controller/support/module_attribute_accessors.rb +0 -57
@@ -0,0 +1 @@
1
+ Living in a nested world
@@ -0,0 +1,3 @@
1
+ module Fun::GamesHelper
2
+ def stratego() "Iz guuut!" end
3
+ end
@@ -0,0 +1,45 @@
1
+ require 'test/unit'
2
+ require File.dirname(__FILE__) + '/../../lib/action_view/helpers/asset_tag_helper'
3
+
4
+ class AssetTagHelperTest < Test::Unit::TestCase
5
+ include ActionView::Helpers::TagHelper
6
+ include ActionView::Helpers::UrlHelper
7
+ include ActionView::Helpers::AssetTagHelper
8
+
9
+ def setup
10
+ @controller = Class.new do
11
+ def url_for(options, *parameters_for_method_reference)
12
+ "http://www.world.com"
13
+ end
14
+ end
15
+ @controller = @controller.new
16
+ end
17
+
18
+ AutoDiscoveryToTag = {
19
+ %(auto_discovery_link_tag) => %(<link href="http://www.world.com" rel="alternate" title="RSS" type="application/rss+xml" />),
20
+ %(auto_discovery_link_tag(:atom)) => %(<link href="http://www.world.com" rel="alternate" title="ATOM" type="application/atom+xml" />),
21
+ %(auto_discovery_link_tag(:rss, :action => "feed")) => %(<link href="http://www.world.com" rel="alternate" title="RSS" type="application/rss+xml" />),
22
+ }
23
+
24
+ JavascriptIncludeToTag = {
25
+ %(javascript_include_tag("xmlhr")) => %(<script language="JavaScript" src="/javascripts/xmlhr.js" type="text/javascript"></script>),
26
+ %(javascript_include_tag("common.javascript", "/elsewhere/cools")) => %(<script language="JavaScript" src="/javascripts/common.javascript" type="text/javascript"></script>\n<script language="JavaScript" src="/elsewhere/cools.js" type="text/javascript"></script>),
27
+ }
28
+
29
+ StyleLinkToTag = {
30
+ %(stylesheet_link_tag("style")) => %(<link href="/stylesheets/style.css" media="screen" rel="Stylesheet" type="text/css" />),
31
+ %(stylesheet_link_tag("random.styles", "/css/stylish")) => %(<link href="/stylesheets/random.styles" media="screen" rel="Stylesheet" type="text/css" />\n<link href="/css/stylish.css" media="screen" rel="Stylesheet" type="text/css" />)
32
+ }
33
+
34
+ def test_auto_discovery
35
+ AutoDiscoveryToTag.each { |method, tag| assert_equal(tag, eval(method)) }
36
+ end
37
+
38
+ def test_javascript_include
39
+ JavascriptIncludeToTag.each { |method, tag| assert_equal(tag, eval(method)) }
40
+ end
41
+
42
+ def test_style_link
43
+ StyleLinkToTag.each { |method, tag| assert_equal(tag, eval(method)) }
44
+ end
45
+ end
@@ -1,6 +1,28 @@
1
1
  require 'test/unit'
2
2
  require File.dirname(__FILE__) + '/../../lib/action_view/helpers/form_options_helper'
3
3
 
4
+ class MockTimeZone
5
+ attr_reader :name
6
+
7
+ def initialize( name )
8
+ @name = name
9
+ end
10
+
11
+ def self.all
12
+ [ "A", "B", "C", "D", "E" ].map { |s| new s }
13
+ end
14
+
15
+ def ==( z )
16
+ z && @name == z.name
17
+ end
18
+
19
+ def to_s
20
+ @name
21
+ end
22
+ end
23
+
24
+ ActionView::Helpers::FormOptionsHelper::TimeZone = MockTimeZone
25
+
4
26
  class FormOptionsHelperTest < Test::Unit::TestCase
5
27
  include ActionView::Helpers::FormOptionsHelper
6
28
 
@@ -8,6 +30,7 @@ class FormOptionsHelperTest < Test::Unit::TestCase
8
30
  Post = Struct.new('Post', :title, :author_name, :body, :secret, :written_on, :category, :origin)
9
31
  Continent = Struct.new('Continent', :continent_name, :countries)
10
32
  Country = Struct.new('Country', :country_id, :country_name)
33
+ Firm = Struct.new('Firm', :time_zone)
11
34
  $VERBOSE = old_verbose
12
35
 
13
36
  def test_collection_options
@@ -104,6 +127,72 @@ class FormOptionsHelperTest < Test::Unit::TestCase
104
127
  )
105
128
  end
106
129
 
130
+ def test_time_zone_options_no_parms
131
+ opts = time_zone_options_for_select
132
+ assert_equal "<option value=\"A\">A</option>\n" +
133
+ "<option value=\"B\">B</option>\n" +
134
+ "<option value=\"C\">C</option>\n" +
135
+ "<option value=\"D\">D</option>\n" +
136
+ "<option value=\"E\">E</option>",
137
+ opts
138
+ end
139
+
140
+ def test_time_zone_options_with_selected
141
+ opts = time_zone_options_for_select( "D" )
142
+ assert_equal "<option value=\"A\">A</option>\n" +
143
+ "<option value=\"B\">B</option>\n" +
144
+ "<option value=\"C\">C</option>\n" +
145
+ "<option value=\"D\" selected=\"selected\">D</option>\n" +
146
+ "<option value=\"E\">E</option>",
147
+ opts
148
+ end
149
+
150
+ def test_time_zone_options_with_unknown_selected
151
+ opts = time_zone_options_for_select( "K" )
152
+ assert_equal "<option value=\"A\">A</option>\n" +
153
+ "<option value=\"B\">B</option>\n" +
154
+ "<option value=\"C\">C</option>\n" +
155
+ "<option value=\"D\">D</option>\n" +
156
+ "<option value=\"E\">E</option>",
157
+ opts
158
+ end
159
+
160
+ def test_time_zone_options_with_priority_zones
161
+ zones = [ TimeZone.new( "B" ), TimeZone.new( "E" ) ]
162
+ opts = time_zone_options_for_select( nil, zones )
163
+ assert_equal "<option value=\"B\">B</option>\n" +
164
+ "<option value=\"E\">E</option>" +
165
+ "<option>-------------</option>\n" +
166
+ "<option value=\"A\">A</option>\n" +
167
+ "<option value=\"C\">C</option>\n" +
168
+ "<option value=\"D\">D</option>",
169
+ opts
170
+ end
171
+
172
+ def test_time_zone_options_with_selected_priority_zones
173
+ zones = [ TimeZone.new( "B" ), TimeZone.new( "E" ) ]
174
+ opts = time_zone_options_for_select( "E", zones )
175
+ assert_equal "<option value=\"B\">B</option>\n" +
176
+ "<option value=\"E\" selected=\"selected\">E</option>" +
177
+ "<option>-------------</option>\n" +
178
+ "<option value=\"A\">A</option>\n" +
179
+ "<option value=\"C\">C</option>\n" +
180
+ "<option value=\"D\">D</option>",
181
+ opts
182
+ end
183
+
184
+ def test_time_zone_options_with_unselected_priority_zones
185
+ zones = [ TimeZone.new( "B" ), TimeZone.new( "E" ) ]
186
+ opts = time_zone_options_for_select( "C", zones )
187
+ assert_equal "<option value=\"B\">B</option>\n" +
188
+ "<option value=\"E\">E</option>" +
189
+ "<option>-------------</option>\n" +
190
+ "<option value=\"A\">A</option>\n" +
191
+ "<option value=\"C\" selected=\"selected\">C</option>\n" +
192
+ "<option value=\"D\">D</option>",
193
+ opts
194
+ end
195
+
107
196
  def test_select
108
197
  @post = Post.new
109
198
  @post.category = "<mus>"
@@ -158,8 +247,79 @@ class FormOptionsHelperTest < Test::Unit::TestCase
158
247
  @post = Post.new
159
248
  @post.origin = "Denmark"
160
249
  assert_equal(
161
- "<select id=\"post_origin\" name=\"post[origin]\"><option>Albania</option>\n<option>Algeria</option>\n<option>American Samoa</option>\n<option>Andorra</option>\n<option>Angola</option>\n<option>Anguilla</option>\n<option>Antarctica</option>\n<option>Antigua And Barbuda</option>\n<option>Argentina</option>\n<option>Armenia</option>\n<option>Aruba</option>\n<option>Australia</option>\n<option>Austria</option>\n<option>Azerbaijan</option>\n<option>Bahamas</option>\n<option>Bahrain</option>\n<option>Bangladesh</option>\n<option>Barbados</option>\n<option>Belarus</option>\n<option>Belgium</option>\n<option>Belize</option>\n<option>Benin</option>\n<option>Bermuda</option>\n<option>Bhutan</option>\n<option>Bolivia</option>\n<option>Bosnia and Herzegowina</option>\n<option>Botswana</option>\n<option>Bouvet Island</option>\n<option>Brazil</option>\n<option>British Indian Ocean Territory</option>\n<option>Brunei Darussalam</option>\n<option>Bulgaria</option>\n<option>Burkina Faso</option>\n<option>Burma</option>\n<option>Burundi</option>\n<option>Cambodia</option>\n<option>Cameroon</option>\n<option>Canada</option>\n<option>Cape Verde</option>\n<option>Cayman Islands</option>\n<option>Central African Republic</option>\n<option>Chad</option>\n<option>Chile</option>\n<option>China</option>\n<option>Christmas Island</option>\n<option>Cocos (Keeling) Islands</option>\n<option>Colombia</option>\n<option>Comoros</option>\n<option>Congo</option>\n<option>Congo, the Democratic Republic of the</option>\n<option>Cook Islands</option>\n<option>Costa Rica</option>\n<option>Cote d'Ivoire</option>\n<option>Croatia</option>\n<option>Cyprus</option>\n<option>Czech Republic</option>\n<option selected=\"selected\">Denmark</option>\n<option>Djibouti</option>\n<option>Dominica</option>\n<option>Dominican Republic</option>\n<option>East Timor</option>\n<option>Ecuador</option>\n<option>Egypt</option>\n<option>El Salvador</option>\n<option>England</option>\n<option>Equatorial Guinea</option>\n<option>Eritrea</option>\n<option>Espana</option>\n<option>Estonia</option>\n<option>Ethiopia</option>\n<option>Falkland Islands</option>\n<option>Faroe Islands</option>\n<option>Fiji</option>\n<option>Finland</option>\n<option>France</option>\n<option>French Guiana</option>\n<option>French Polynesia</option>\n<option>French Southern Territories</option>\n<option>Gabon</option>\n<option>Gambia</option>\n<option>Georgia</option>\n<option>Germany</option>\n<option>Ghana</option>\n<option>Gibraltar</option>\n<option>Great Britain</option>\n<option>Greece</option>\n<option>Greenland</option>\n<option>Grenada</option>\n<option>Guadeloupe</option>\n<option>Guam</option>\n<option>Guatemala</option>\n<option>Guinea</option>\n<option>Guinea-Bissau</option>\n<option>Guyana</option>\n<option>Haiti</option>\n<option>Heard and Mc Donald Islands</option>\n<option>Honduras</option>\n<option>Hong Kong</option>\n<option>Hungary</option>\n<option>Iceland</option>\n<option>India</option>\n<option>Indonesia</option>\n<option>Ireland</option>\n<option>Israel</option>\n<option>Italy</option>\n<option>Jamaica</option>\n<option>Japan</option>\n<option>Jordan</option>\n<option>Kazakhstan</option>\n<option>Kenya</option>\n<option>Kiribati</option>\n<option>Korea, Republic of</option>\n<option>Korea (South)</option>\n<option>Kuwait</option>\n<option>Kyrgyzstan</option>\n<option>Lao People's Democratic Republic</option>\n<option>Latvia</option>\n<option>Lebanon</option>\n<option>Lesotho</option>\n<option>Liberia</option>\n<option>Liechtenstein</option>\n<option>Lithuania</option>\n<option>Luxembourg</option>\n<option>Macau</option>\n<option>Macedonia</option>\n<option>Madagascar</option>\n<option>Malawi</option>\n<option>Malaysia</option>\n<option>Maldives</option>\n<option>Mali</option>\n<option>Malta</option>\n<option>Marshall Islands</option>\n<option>Martinique</option>\n<option>Mauritania</option>\n<option>Mauritius</option>\n<option>Mayotte</option>\n<option>Mexico</option>\n<option>Micronesia, Federated States of</option>\n<option>Moldova, Republic of</option>\n<option>Monaco</option>\n<option>Mongolia</option>\n<option>Montserrat</option>\n<option>Morocco</option>\n<option>Mozambique</option>\n<option>Myanmar</option>\n<option>Namibia</option>\n<option>Nauru</option>\n<option>Nepal</option>\n<option>Netherlands</option>\n<option>Netherlands Antilles</option>\n<option>New Caledonia</option>\n<option>New Zealand</option>\n<option>Nicaragua</option>\n<option>Niger</option>\n<option>Nigeria</option>\n<option>Niue</option>\n<option>Norfolk Island</option>\n<option>Northern Ireland</option>\n<option>Northern Mariana Islands</option>\n<option>Norway</option>\n<option>Oman</option>\n<option>Pakistan</option>\n<option>Palau</option>\n<option>Panama</option>\n<option>Papua New Guinea</option>\n<option>Paraguay</option>\n<option>Peru</option>\n<option>Philippines</option>\n<option>Pitcairn</option>\n<option>Poland</option>\n<option>Portugal</option>\n<option>Puerto Rico</option>\n<option>Qatar</option>\n<option>Reunion</option>\n<option>Romania</option>\n<option>Russia</option>\n<option>Rwanda</option>\n<option>Saint Kitts and Nevis</option>\n<option>Saint Lucia</option>\n<option>Saint Vincent and the Grenadines</option>\n<option>Samoa (Independent)</option>\n<option>San Marino</option>\n<option>Sao Tome and Principe</option>\n<option>Saudi Arabia</option>\n<option>Scotland</option>\n<option>Senegal</option>\n<option>Seychelles</option>\n<option>Sierra Leone</option>\n<option>Singapore</option>\n<option>Slovakia</option>\n<option>Slovenia</option>\n<option>Solomon Islands</option>\n<option>Somalia</option>\n<option>South Africa</option>\n<option>South Georgia and the South Sandwich Islands</option>\n<option>South Korea</option>\n<option>Spain</option>\n<option>Sri Lanka</option>\n<option>St. Helena</option>\n<option>St. Pierre and Miquelon</option>\n<option>Suriname</option>\n<option>Svalbard and Jan Mayen Islands</option>\n<option>Swaziland</option>\n<option>Sweden</option>\n<option>Switzerland</option>\n<option>Taiwan</option>\n<option>Tajikistan</option>\n<option>Tanzania</option>\n<option>Thailand</option>\n<option>Togo</option>\n<option>Tokelau</option>\n<option>Tonga</option>\n<option>Trinidad</option>\n<option>Trinidad and Tobago</option>\n<option>Tunisia</option>\n<option>Turkey</option>\n<option>Turkmenistan</option>\n<option>Turks and Caicos Islands</option>\n<option>Tuvalu</option>\n<option>Uganda</option>\n<option>Ukraine</option>\n<option>United Arab Emirates</option>\n<option>United Kingdom</option>\n<option>United States</option>\n<option>United States Minor Outlying Islands</option>\n<option>Uruguay</option>\n<option>Uzbekistan</option>\n<option>Vanuatu</option>\n<option>Vatican City State (Holy See)</option>\n<option>Venezuela</option>\n<option>Viet Nam</option>\n<option>Virgin Islands (British)</option>\n<option>Virgin Islands (U.S.)</option>\n<option>Wales</option>\n<option>Wallis and Futuna Islands</option>\n<option>Western Sahara</option>\n<option>Yemen</option>\n<option>Zambia</option>\n<option>Zimbabwe</option></select>",
250
+ "<select id=\"post_origin\" name=\"post[origin]\"><option>Afghanistan</option>\n<option>Albania</option>\n<option>Algeria</option>\n<option>American Samoa</option>\n<option>Andorra</option>\n<option>Angola</option>\n<option>Anguilla</option>\n<option>Antarctica</option>\n<option>Antigua And Barbuda</option>\n<option>Argentina</option>\n<option>Armenia</option>\n<option>Aruba</option>\n<option>Australia</option>\n<option>Austria</option>\n<option>Azerbaijan</option>\n<option>Bahamas</option>\n<option>Bahrain</option>\n<option>Bangladesh</option>\n<option>Barbados</option>\n<option>Belarus</option>\n<option>Belgium</option>\n<option>Belize</option>\n<option>Benin</option>\n<option>Bermuda</option>\n<option>Bhutan</option>\n<option>Bolivia</option>\n<option>Bosnia and Herzegowina</option>\n<option>Botswana</option>\n<option>Bouvet Island</option>\n<option>Brazil</option>\n<option>British Indian Ocean Territory</option>\n<option>Brunei Darussalam</option>\n<option>Bulgaria</option>\n<option>Burkina Faso</option>\n<option>Burma</option>\n<option>Burundi</option>\n<option>Cambodia</option>\n<option>Cameroon</option>\n<option>Canada</option>\n<option>Cape Verde</option>\n<option>Cayman Islands</option>\n<option>Central African Republic</option>\n<option>Chad</option>\n<option>Chile</option>\n<option>China</option>\n<option>Christmas Island</option>\n<option>Cocos (Keeling) Islands</option>\n<option>Colombia</option>\n<option>Comoros</option>\n<option>Congo</option>\n<option>Congo, the Democratic Republic of the</option>\n<option>Cook Islands</option>\n<option>Costa Rica</option>\n<option>Cote d'Ivoire</option>\n<option>Croatia</option>\n<option>Cyprus</option>\n<option>Czech Republic</option>\n<option selected=\"selected\">Denmark</option>\n<option>Djibouti</option>\n<option>Dominica</option>\n<option>Dominican Republic</option>\n<option>East Timor</option>\n<option>Ecuador</option>\n<option>Egypt</option>\n<option>El Salvador</option>\n<option>England</option>\n<option>Equatorial Guinea</option>\n<option>Eritrea</option>\n<option>Espana</option>\n<option>Estonia</option>\n<option>Ethiopia</option>\n<option>Falkland Islands</option>\n<option>Faroe Islands</option>\n<option>Fiji</option>\n<option>Finland</option>\n<option>France</option>\n<option>French Guiana</option>\n<option>French Polynesia</option>\n<option>French Southern Territories</option>\n<option>Gabon</option>\n<option>Gambia</option>\n<option>Georgia</option>\n<option>Germany</option>\n<option>Ghana</option>\n<option>Gibraltar</option>\n<option>Great Britain</option>\n<option>Greece</option>\n<option>Greenland</option>\n<option>Grenada</option>\n<option>Guadeloupe</option>\n<option>Guam</option>\n<option>Guatemala</option>\n<option>Guinea</option>\n<option>Guinea-Bissau</option>\n<option>Guyana</option>\n<option>Haiti</option>\n<option>Heard and Mc Donald Islands</option>\n<option>Honduras</option>\n<option>Hong Kong</option>\n<option>Hungary</option>\n<option>Iceland</option>\n<option>India</option>\n<option>Indonesia</option>\n<option>Ireland</option>\n<option>Israel</option>\n<option>Italy</option>\n<option>Iran</option>\n<option>Irak</option>\n<option>Jamaica</option>\n<option>Japan</option>\n<option>Jordan</option>\n<option>Kazakhstan</option>\n<option>Kenya</option>\n<option>Kiribati</option>\n<option>Korea, Republic of</option>\n<option>Korea (South)</option>\n<option>Kuwait</option>\n<option>Kyrgyzstan</option>\n<option>Lao People's Democratic Republic</option>\n<option>Latvia</option>\n<option>Lebanon</option>\n<option>Lesotho</option>\n<option>Liberia</option>\n<option>Liechtenstein</option>\n<option>Lithuania</option>\n<option>Luxembourg</option>\n<option>Macau</option>\n<option>Macedonia</option>\n<option>Madagascar</option>\n<option>Malawi</option>\n<option>Malaysia</option>\n<option>Maldives</option>\n<option>Mali</option>\n<option>Malta</option>\n<option>Marshall Islands</option>\n<option>Martinique</option>\n<option>Mauritania</option>\n<option>Mauritius</option>\n<option>Mayotte</option>\n<option>Mexico</option>\n<option>Micronesia, Federated States of</option>\n<option>Moldova, Republic of</option>\n<option>Monaco</option>\n<option>Mongolia</option>\n<option>Montserrat</option>\n<option>Morocco</option>\n<option>Mozambique</option>\n<option>Myanmar</option>\n<option>Namibia</option>\n<option>Nauru</option>\n<option>Nepal</option>\n<option>Netherlands</option>\n<option>Netherlands Antilles</option>\n<option>New Caledonia</option>\n<option>New Zealand</option>\n<option>Nicaragua</option>\n<option>Niger</option>\n<option>Nigeria</option>\n<option>Niue</option>\n<option>Norfolk Island</option>\n<option>Northern Ireland</option>\n<option>Northern Mariana Islands</option>\n<option>Norway</option>\n<option>Oman</option>\n<option>Pakistan</option>\n<option>Palau</option>\n<option>Panama</option>\n<option>Papua New Guinea</option>\n<option>Paraguay</option>\n<option>Peru</option>\n<option>Philippines</option>\n<option>Pitcairn</option>\n<option>Poland</option>\n<option>Portugal</option>\n<option>Puerto Rico</option>\n<option>Qatar</option>\n<option>Reunion</option>\n<option>Romania</option>\n<option>Russia</option>\n<option>Rwanda</option>\n<option>Saint Kitts and Nevis</option>\n<option>Saint Lucia</option>\n<option>Saint Vincent and the Grenadines</option>\n<option>Samoa (Independent)</option>\n<option>San Marino</option>\n<option>Sao Tome and Principe</option>\n<option>Saudi Arabia</option>\n<option>Scotland</option>\n<option>Senegal</option>\n<option>Seychelles</option>\n<option>Sierra Leone</option>\n<option>Singapore</option>\n<option>Slovakia</option>\n<option>Slovenia</option>\n<option>Solomon Islands</option>\n<option>Somalia</option>\n<option>South Africa</option>\n<option>South Georgia and the South Sandwich Islands</option>\n<option>South Korea</option>\n<option>Spain</option>\n<option>Sri Lanka</option>\n<option>St. Helena</option>\n<option>St. Pierre and Miquelon</option>\n<option>Suriname</option>\n<option>Svalbard and Jan Mayen Islands</option>\n<option>Swaziland</option>\n<option>Sweden</option>\n<option>Switzerland</option>\n<option>Taiwan</option>\n<option>Tajikistan</option>\n<option>Tanzania</option>\n<option>Thailand</option>\n<option>Togo</option>\n<option>Tokelau</option>\n<option>Tonga</option>\n<option>Trinidad</option>\n<option>Trinidad and Tobago</option>\n<option>Tunisia</option>\n<option>Turkey</option>\n<option>Turkmenistan</option>\n<option>Turks and Caicos Islands</option>\n<option>Tuvalu</option>\n<option>Uganda</option>\n<option>Ukraine</option>\n<option>United Arab Emirates</option>\n<option>United Kingdom</option>\n<option>United States</option>\n<option>United States Minor Outlying Islands</option>\n<option>Uruguay</option>\n<option>Uzbekistan</option>\n<option>Vanuatu</option>\n<option>Vatican City State (Holy See)</option>\n<option>Venezuela</option>\n<option>Viet Nam</option>\n<option>Virgin Islands (British)</option>\n<option>Virgin Islands (U.S.)</option>\n<option>Wales</option>\n<option>Wallis and Futuna Islands</option>\n<option>Western Sahara</option>\n<option>Yemen</option>\n<option>Zambia</option>\n<option>Zimbabwe</option></select>",
162
251
  country_select("post", "origin")
163
252
  )
164
253
  end
254
+
255
+ def test_time_zone_select
256
+ @firm = Firm.new("D")
257
+ html = time_zone_select( "firm", "time_zone" )
258
+ assert_equal "<select id=\"firm_time_zone\" name=\"firm[time_zone]\">" +
259
+ "<option value=\"A\">A</option>\n" +
260
+ "<option value=\"B\">B</option>\n" +
261
+ "<option value=\"C\">C</option>\n" +
262
+ "<option value=\"D\" selected=\"selected\">D</option>\n" +
263
+ "<option value=\"E\">E</option>" +
264
+ "</select>",
265
+ html
266
+ end
267
+
268
+ def test_time_zone_select_with_blank
269
+ @firm = Firm.new("D")
270
+ html = time_zone_select("firm", "time_zone", nil, :include_blank => true)
271
+ assert_equal "<select id=\"firm_time_zone\" name=\"firm[time_zone]\">" +
272
+ "<option></option>\n" +
273
+ "<option value=\"A\">A</option>\n" +
274
+ "<option value=\"B\">B</option>\n" +
275
+ "<option value=\"C\">C</option>\n" +
276
+ "<option value=\"D\" selected=\"selected\">D</option>\n" +
277
+ "<option value=\"E\">E</option>" +
278
+ "</select>",
279
+ html
280
+ end
281
+
282
+ def test_time_zone_select_with_style
283
+ @firm = Firm.new("D")
284
+ html = time_zone_select("firm", "time_zone", nil, {},
285
+ "style" => "color: red")
286
+ assert_equal "<select id=\"firm_time_zone\" name=\"firm[time_zone]\" style=\"color: red\">" +
287
+ "<option value=\"A\">A</option>\n" +
288
+ "<option value=\"B\">B</option>\n" +
289
+ "<option value=\"C\">C</option>\n" +
290
+ "<option value=\"D\" selected=\"selected\">D</option>\n" +
291
+ "<option value=\"E\">E</option>" +
292
+ "</select>",
293
+ html
294
+ end
295
+
296
+ def test_time_zone_select_with_blank_and_style
297
+ @firm = Firm.new("D")
298
+ html = time_zone_select("firm", "time_zone", nil,
299
+ { :include_blank => true }, "style" => "color: red")
300
+ assert_equal "<select id=\"firm_time_zone\" name=\"firm[time_zone]\" style=\"color: red\">" +
301
+ "<option></option>\n" +
302
+ "<option value=\"A\">A</option>\n" +
303
+ "<option value=\"B\">B</option>\n" +
304
+ "<option value=\"C\">C</option>\n" +
305
+ "<option value=\"D\" selected=\"selected\">D</option>\n" +
306
+ "<option value=\"E\">E</option>" +
307
+ "</select>",
308
+ html
309
+ end
310
+
311
+ def test_time_zone_select_with_priority_zones
312
+ @firm = Firm.new("D")
313
+ zones = [ TimeZone.new("A"), TimeZone.new("D") ]
314
+ html = time_zone_select("firm", "time_zone", zones )
315
+ assert_equal "<select id=\"firm_time_zone\" name=\"firm[time_zone]\">" +
316
+ "<option value=\"A\">A</option>\n" +
317
+ "<option value=\"D\" selected=\"selected\">D</option>" +
318
+ "<option>-------------</option>\n" +
319
+ "<option value=\"B\">B</option>\n" +
320
+ "<option value=\"C\">C</option>\n" +
321
+ "<option value=\"E\">E</option>" +
322
+ "</select>",
323
+ html
324
+ end
165
325
  end
@@ -0,0 +1,22 @@
1
+ require 'test/unit'
2
+ require File.dirname(__FILE__) + '/../../lib/action_view/helpers/form_tag_helper'
3
+
4
+ class FormTagHelperTest < Test::Unit::TestCase
5
+ include ActionView::Helpers::TagHelper
6
+ include ActionView::Helpers::FormTagHelper
7
+
8
+ MethodToTag = {
9
+ %(text_field_tag("title", "Hello!")) => %(<input id="title" name="title" type="text" value="Hello!" />),
10
+ %(text_field_tag("title", "Hello!", "class" => "admin")) => %(<input class="admin" id="title" name="title" type="text" value="Hello!" />),
11
+ %(hidden_field_tag "id", 3) => %(<input id="id" name="id" type="hidden" value="3" />),
12
+ %(password_field_tag) => %(<input id="password" name="password" type="password" value="" />),
13
+ %(text_area_tag("body", "hello world", :size => "20x40")) => %(<textarea cols="20" id="body" name="body" rows="40">hello world</textarea>),
14
+ %(check_box_tag("admin")) => %(<input id="admin" name="admin" type="checkbox" value="1" />),
15
+ %(radio_button_tag("people", "david")) => %(<input id="people" name="people" type="radio" value="david" />),
16
+ %(select_tag("people", "<option>david</option>")) => %(<select id="people" name="people"><option>david</option></select>),
17
+ }
18
+
19
+ def test_tags
20
+ MethodToTag.each { |method, tag| assert_equal(eval(method), tag) }
21
+ end
22
+ end
@@ -59,4 +59,11 @@ class TextHelperTest < Test::Unit::TestCase
59
59
  assert_equal("1 count", pluralize(1, "count"))
60
60
  assert_equal("2 counts", pluralize(2, "count"))
61
61
  end
62
+
63
+ def test_auto_linking
64
+ assert_equal %(hello <a href="mailto:david@loudthinking.com">david@loudthinking.com</a>), auto_link("hello david@loudthinking.com", :email_addresses)
65
+ assert_equal %(Go to <a href="http://www.rubyonrails.com">http://www.rubyonrails.com</a>), auto_link("Go to http://www.rubyonrails.com", :urls)
66
+ assert_equal %(Go to http://www.rubyonrails.com), auto_link("Go to http://www.rubyonrails.com", :email_addresses)
67
+ assert_equal %(Go to <a href="http://www.rubyonrails.com">http://www.rubyonrails.com</a> and say hello to <a href="mailto:david@loudthinking.com">david@loudthinking.com</a>), auto_link("Go to http://www.rubyonrails.com and say hello to david@loudthinking.com")
68
+ end
62
69
  end
@@ -2,6 +2,8 @@ require 'test/unit'
2
2
  require File.dirname(__FILE__) + '/../../lib/action_view/helpers/url_helper'
3
3
  require File.dirname(__FILE__) + '/../../lib/action_view/helpers/tag_helper'
4
4
 
5
+ RequestMock = Struct.new("Request", :request_uri)
6
+
5
7
  class UrlHelperTest < Test::Unit::TestCase
6
8
  include ActionView::Helpers::UrlHelper
7
9
  include ActionView::Helpers::TagHelper
@@ -40,11 +42,12 @@ class UrlHelperTest < Test::Unit::TestCase
40
42
  end
41
43
 
42
44
  def test_link_unless_current
43
- @params = { "controller" => "weblog", "action" => "show"}
45
+ @request = RequestMock.new("http://www.world.com")
44
46
  assert_equal "Showing", link_to_unless_current("Showing", :action => "show", :controller => "weblog")
47
+ @request = RequestMock.new("http://www.notworld.com")
45
48
  assert "<a href=\"http://www.world.com\">Listing</a>", link_to_unless_current("Listing", :action => "list", :controller => "weblog")
46
49
 
47
- @params = { "controller" => "weblog", "action" => "show", "id" => "1"}
50
+ @request = RequestMock.new("http://www.world.com")
48
51
  assert_equal "Showing", link_to_unless_current("Showing", :action => "show", :controller => "weblog", :id => 1)
49
52
  end
50
53
 
@@ -0,0 +1,105 @@
1
+ ***************
2
+ *** 11,17 ****
3
+ def setup
4
+ @controller = Class.new do
5
+ def url_for(options, *parameters_for_method_reference)
6
+ - &#34;http://www.world.com&#34;
7
+ end
8
+ end
9
+ @controller = @controller.new
10
+ --- 11,17 ----
11
+ def setup
12
+ @controller = Class.new do
13
+ def url_for(options, *parameters_for_method_reference)
14
+ + &#34;http://www.example.com&#34;
15
+ end
16
+ end
17
+ @controller = @controller.new
18
+ ***************
19
+ *** 19,53 ****
20
+
21
+ # todo: missing test cases
22
+ def test_link_tag_with_straight_url
23
+ - assert_equal &#34;&lt;a href=\&#34;http://www.world.com\&#34;&gt;Hello&lt;/a&gt;&#34;, link_to(&#34;Hello&#34;, &#34;http://www.world.com&#34;)
24
+ end
25
+
26
+ def test_link_tag_with_javascript_confirm
27
+ assert_equal(
28
+ - &#34;&lt;a href=\&#34;http://www.world.com\&#34; onclick=\&#34;return confirm('Are you sure?');\&#34;&gt;Hello&lt;/a&gt;&#34;,
29
+ - link_to(&#34;Hello&#34;, &#34;http://www.world.com&#34;, :confirm =&gt; &#34;Are you sure?&#34;)
30
+ )
31
+ end
32
+
33
+ def test_link_to_image
34
+ assert_equal(
35
+ - &#34;&lt;a href=\&#34;http://www.world.com\&#34;&gt;&lt;img alt=\&#34;Rss\&#34; border=\&#34;0\&#34; height=\&#34;45\&#34; src=\&#34;/images/rss.png\&#34; width=\&#34;30\&#34; /&gt;&lt;/a&gt;&#34;,
36
+ - link_to_image(&#34;rss&#34;, &#34;http://www.world.com&#34;, &#34;size&#34; =&gt; &#34;30x45&#34;)
37
+ )
38
+
39
+ assert_equal(
40
+ - &#34;&lt;a class=\&#34;admin\&#34; href=\&#34;http://www.world.com\&#34;&gt;&lt;img alt=\&#34;Feed\&#34; border=\&#34;0\&#34; height=\&#34;45\&#34; src=\&#34;/images/rss.gif\&#34; width=\&#34;30\&#34; /&gt;&lt;/a&gt;&#34;,
41
+ - link_to_image(&#34;rss.gif&#34;, &#34;http://www.world.com&#34;, &#34;size&#34; =&gt; &#34;30x45&#34;, &#34;alt&#34; =&gt; &#34;Feed&#34;, &#34;class&#34; =&gt; &#34;admin&#34;)
42
+ )
43
+ end
44
+
45
+ def test_link_unless_current
46
+ - @request = RequestMock.new(&#34;http://www.world.com&#34;)
47
+ assert_equal &#34;Showing&#34;, link_to_unless_current(&#34;Showing&#34;, :action =&gt; &#34;show&#34;, :controller =&gt; &#34;weblog&#34;)
48
+ - @request = RequestMock.new(&#34;http://www.notworld.com&#34;)
49
+ - assert &#34;&lt;a href=\&#34;http://www.world.com\&#34;&gt;Listing&lt;/a&gt;&#34;, link_to_unless_current(&#34;Listing&#34;, :action =&gt; &#34;list&#34;, :controller =&gt; &#34;weblog&#34;)
50
+
51
+ - @request = RequestMock.new(&#34;http://www.world.com&#34;)
52
+ assert_equal &#34;Showing&#34;, link_to_unless_current(&#34;Showing&#34;, :action =&gt; &#34;show&#34;, :controller =&gt; &#34;weblog&#34;, :id =&gt; 1)
53
+ end
54
+
55
+ --- 19,53 ----
56
+
57
+ # todo: missing test cases
58
+ def test_link_tag_with_straight_url
59
+ + assert_equal &#34;&lt;a href=\&#34;http://www.example.com\&#34;&gt;Hello&lt;/a&gt;&#34;, link_to(&#34;Hello&#34;, &#34;http://www.example.com&#34;)
60
+ end
61
+
62
+ def test_link_tag_with_javascript_confirm
63
+ assert_equal(
64
+ + &#34;&lt;a href=\&#34;http://www.example.com\&#34; onclick=\&#34;return confirm('Are you sure?');\&#34;&gt;Hello&lt;/a&gt;&#34;,
65
+ + link_to(&#34;Hello&#34;, &#34;http://www.example.com&#34;, :confirm =&gt; &#34;Are you sure?&#34;)
66
+ )
67
+ end
68
+
69
+ def test_link_to_image
70
+ assert_equal(
71
+ + &#34;&lt;a href=\&#34;http://www.example.com\&#34;&gt;&lt;img alt=\&#34;Rss\&#34; border=\&#34;1\&#34; height=\&#34;45\&#34; src=\&#34;/images/rss.png\&#34; width=\&#34;30\&#34; /&gt;&lt;/a&gt;&#34;,
72
+ + link_to_image(&#34;rss&#34;, &#34;http://www.example.com&#34;, &#34;size&#34; =&gt; &#34;30x45&#34;, &#34;border&#34; =&gt; 1)
73
+ )
74
+
75
+ assert_equal(
76
+ + &#34;&lt;a class=\&#34;admin\&#34; href=\&#34;http://www.example.com\&#34;&gt;&lt;img alt=\&#34;Feed\&#34; height=\&#34;45\&#34; src=\&#34;/images/rss.gif\&#34; width=\&#34;30\&#34; /&gt;&lt;/a&gt;&#34;,
77
+ + link_to_image(&#34;rss.gif&#34;, &#34;http://www.example.com&#34;, &#34;size&#34; =&gt; &#34;30x45&#34;, &#34;alt&#34; =&gt; &#34;Feed&#34;, &#34;class&#34; =&gt; &#34;admin&#34;)
78
+ )
79
+ end
80
+
81
+ def test_link_unless_current
82
+ + @request = RequestMock.new(&#34;http://www.example.com&#34;)
83
+ assert_equal &#34;Showing&#34;, link_to_unless_current(&#34;Showing&#34;, :action =&gt; &#34;show&#34;, :controller =&gt; &#34;weblog&#34;)
84
+ + @request = RequestMock.new(&#34;http://www.example.org&#34;)
85
+ + assert &#34;&lt;a href=\&#34;http://www.example.com\&#34;&gt;Listing&lt;/a&gt;&#34;, link_to_unless_current(&#34;Listing&#34;, :action =&gt; &#34;list&#34;, :controller =&gt; &#34;weblog&#34;)
86
+
87
+ + @request = RequestMock.new(&#34;http://www.example.com&#34;)
88
+ assert_equal &#34;Showing&#34;, link_to_unless_current(&#34;Showing&#34;, :action =&gt; &#34;show&#34;, :controller =&gt; &#34;weblog&#34;, :id =&gt; 1)
89
+ end
90
+
91
+ ***************
92
+ *** 61,66 ****
93
+ end
94
+
95
+ def test_link_with_nil_html_options
96
+ - assert_equal &#34;&lt;a href=\&#34;http://www.world.com\&#34;&gt;Hello&lt;/a&gt;&#34;, link_to(&#34;Hello&#34;, {:action =&gt; 'myaction'}, nil)
97
+ end
98
+ end
99
+ --- 61,66 ----
100
+ end
101
+
102
+ def test_link_with_nil_html_options
103
+ + assert_equal &#34;&lt;a href=\&#34;http://www.example.com\&#34;&gt;Hello&lt;/a&gt;&#34;, link_to(&#34;Hello&#34;, {:action =&gt; 'myaction'}, nil)
104
+ end
105
+ end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.4
3
3
  specification_version: 1
4
4
  name: actionpack
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.4.0
7
- date: 2005-01-25
6
+ version: 1.5.0
7
+ date: 2005-02-24
8
8
  summary: Web-flow and rendering framework putting the VC in MVC.
9
9
  require_paths:
10
10
  - lib
@@ -46,6 +46,7 @@ files:
46
46
  - lib/action_controller/caching.rb
47
47
  - lib/action_controller/cgi_ext
48
48
  - lib/action_controller/cgi_process.rb
49
+ - lib/action_controller/components.rb
49
50
  - lib/action_controller/cookies.rb
50
51
  - lib/action_controller/dependencies.rb
51
52
  - lib/action_controller/filters.rb
@@ -55,10 +56,10 @@ files:
55
56
  - lib/action_controller/request.rb
56
57
  - lib/action_controller/rescue.rb
57
58
  - lib/action_controller/response.rb
59
+ - lib/action_controller/routing.rb
58
60
  - lib/action_controller/scaffolding.rb
59
61
  - lib/action_controller/session
60
62
  - lib/action_controller/session.rb
61
- - lib/action_controller/support
62
63
  - lib/action_controller/templates
63
64
  - lib/action_controller/test_process.rb
64
65
  - lib/action_controller/url_rewriter.rb
@@ -72,34 +73,13 @@ files:
72
73
  - lib/action_controller/session/drb_server.rb
73
74
  - lib/action_controller/session/drb_store.rb
74
75
  - lib/action_controller/session/mem_cache_store.rb
75
- - lib/action_controller/support/binding_of_caller.rb
76
- - lib/action_controller/support/breakpoint.rb
77
- - lib/action_controller/support/class_attribute_accessors.rb
78
- - lib/action_controller/support/class_inheritable_attributes.rb
79
- - lib/action_controller/support/clean_logger.rb
80
- - lib/action_controller/support/core_ext
81
- - lib/action_controller/support/core_ext.rb
82
- - lib/action_controller/support/dependencies.rb
83
- - lib/action_controller/support/inflector.rb
84
- - lib/action_controller/support/misc.rb
85
- - lib/action_controller/support/module_attribute_accessors.rb
86
- - lib/action_controller/support/core_ext/hash
87
- - lib/action_controller/support/core_ext/hash.rb
88
- - lib/action_controller/support/core_ext/numeric
89
- - lib/action_controller/support/core_ext/numeric.rb
90
- - lib/action_controller/support/core_ext/object_and_class.rb
91
- - lib/action_controller/support/core_ext/string
92
- - lib/action_controller/support/core_ext/string.rb
93
- - lib/action_controller/support/core_ext/hash/keys.rb
94
- - lib/action_controller/support/core_ext/numeric/bytes.rb
95
- - lib/action_controller/support/core_ext/numeric/time.rb
96
- - lib/action_controller/support/core_ext/string/inflections.rb
97
76
  - lib/action_controller/templates/rescues
98
77
  - lib/action_controller/templates/scaffolds
99
78
  - lib/action_controller/templates/rescues/_request_and_response.rhtml
100
79
  - lib/action_controller/templates/rescues/diagnostics.rhtml
101
80
  - lib/action_controller/templates/rescues/layout.rhtml
102
81
  - lib/action_controller/templates/rescues/missing_template.rhtml
82
+ - lib/action_controller/templates/rescues/routing_error.rhtml
103
83
  - lib/action_controller/templates/rescues/template_error.rhtml
104
84
  - lib/action_controller/templates/rescues/unknown_action.rhtml
105
85
  - lib/action_controller/templates/scaffolds/edit.rhtml
@@ -113,11 +93,13 @@ files:
113
93
  - lib/action_view/template_error.rb
114
94
  - lib/action_view/vendor
115
95
  - lib/action_view/helpers/active_record_helper.rb
96
+ - lib/action_view/helpers/asset_tag_helper.rb
116
97
  - lib/action_view/helpers/cache_helper.rb
117
98
  - lib/action_view/helpers/date_helper.rb
118
99
  - lib/action_view/helpers/debug_helper.rb
119
100
  - lib/action_view/helpers/form_helper.rb
120
101
  - lib/action_view/helpers/form_options_helper.rb
102
+ - lib/action_view/helpers/form_tag_helper.rb
121
103
  - lib/action_view/helpers/tag_helper.rb
122
104
  - lib/action_view/helpers/text_helper.rb
123
105
  - lib/action_view/helpers/url_helper.rb
@@ -133,8 +115,11 @@ files:
133
115
  - test/template
134
116
  - test/controller/action_pack_assertions_test.rb
135
117
  - test/controller/active_record_assertions_test.rb
118
+ - test/controller/base_tests.rb
136
119
  - test/controller/cgi_test.rb
120
+ - test/controller/components_test.rb
137
121
  - test/controller/cookie_test.rb
122
+ - test/controller/custom_handler_test.rb
138
123
  - test/controller/filters_test.rb
139
124
  - test/controller/flash_test.rb
140
125
  - test/controller/helper_test.rb
@@ -143,13 +128,20 @@ files:
143
128
  - test/controller/redirect_test.rb
144
129
  - test/controller/render_test.rb
145
130
  - test/controller/request_test.rb
131
+ - test/controller/routing_tests.rb
146
132
  - test/controller/send_file_test.rb
147
- - test/controller/url_test.rb
133
+ - test/controller/url_obsolete.rb
134
+ - test/controller/url_obsolete.rb.rej
135
+ - test/fixtures/fun
148
136
  - test/fixtures/helpers
149
137
  - test/fixtures/layouts
150
138
  - test/fixtures/scope
151
139
  - test/fixtures/test
140
+ - test/fixtures/fun/games
141
+ - test/fixtures/fun/games/hello_world.rhtml
152
142
  - test/fixtures/helpers/abc_helper.rb
143
+ - test/fixtures/helpers/fun
144
+ - test/fixtures/helpers/fun/games_helper.rb
153
145
  - test/fixtures/layouts/builder.rxml
154
146
  - test/fixtures/layouts/standard.rhtml
155
147
  - test/fixtures/scope/test
@@ -161,12 +153,15 @@ files:
161
153
  - test/fixtures/test/hello_xml_world.rxml
162
154
  - test/fixtures/test/list.rhtml
163
155
  - test/template/active_record_helper_test.rb
156
+ - test/template/asset_tag_helper_test.rb
164
157
  - test/template/date_helper_test.rb
165
158
  - test/template/form_helper_test.rb
166
159
  - test/template/form_options_helper_test.rb
160
+ - test/template/form_tag_helper_test.rb
167
161
  - test/template/tag_helper_test.rb
168
162
  - test/template/text_helper_test.rb
169
163
  - test/template/url_helper_test.rb
164
+ - test/template/url_helper_test.rb.rej
170
165
  - examples/address_book
171
166
  - examples/address_book_controller.cgi
172
167
  - examples/address_book_controller.fcgi
@@ -189,4 +184,14 @@ executables: []
189
184
  extensions: []
190
185
  requirements:
191
186
  - none
192
- dependencies: []
187
+ dependencies:
188
+ - !ruby/object:Gem::Dependency
189
+ name: activesupport
190
+ version_requirement:
191
+ version_requirements: !ruby/object:Gem::Version::Requirement
192
+ requirements:
193
+ -
194
+ - "="
195
+ - !ruby/object:Gem::Version
196
+ version: 1.0.0
197
+ version: