actionpack 1.9.1 → 1.10.1
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.
- data/CHANGELOG +237 -0
- data/README +12 -12
- data/lib/action_controller.rb +17 -12
- data/lib/action_controller/assertions.rb +119 -67
- data/lib/action_controller/base.rb +184 -102
- data/lib/action_controller/benchmarking.rb +35 -6
- data/lib/action_controller/caching.rb +115 -58
- data/lib/action_controller/cgi_ext/cgi_methods.rb +54 -21
- data/lib/action_controller/cgi_ext/cookie_performance_fix.rb +39 -35
- data/lib/action_controller/cgi_ext/raw_post_data_fix.rb +34 -21
- data/lib/action_controller/cgi_process.rb +23 -20
- data/lib/action_controller/components.rb +11 -2
- data/lib/action_controller/dependencies.rb +0 -5
- data/lib/action_controller/deprecated_redirects.rb +17 -0
- data/lib/action_controller/filters.rb +13 -9
- data/lib/action_controller/flash.rb +7 -7
- data/lib/action_controller/helpers.rb +1 -14
- data/lib/action_controller/layout.rb +40 -29
- data/lib/action_controller/macros/auto_complete.rb +52 -0
- data/lib/action_controller/macros/in_place_editing.rb +32 -0
- data/lib/action_controller/pagination.rb +44 -28
- data/lib/action_controller/request.rb +54 -40
- data/lib/action_controller/rescue.rb +8 -6
- data/lib/action_controller/routing.rb +77 -28
- data/lib/action_controller/scaffolding.rb +10 -14
- data/lib/action_controller/session/active_record_store.rb +36 -7
- data/lib/action_controller/session_management.rb +126 -0
- data/lib/action_controller/streaming.rb +14 -5
- data/lib/action_controller/templates/rescues/_request_and_response.rhtml +1 -1
- data/lib/action_controller/templates/rescues/_trace.rhtml +24 -0
- data/lib/action_controller/templates/rescues/diagnostics.rhtml +2 -13
- data/lib/action_controller/templates/rescues/template_error.rhtml +4 -2
- data/lib/action_controller/templates/scaffolds/list.rhtml +1 -1
- data/lib/action_controller/test_process.rb +35 -17
- data/lib/action_controller/upload_progress.rb +52 -0
- data/lib/action_controller/url_rewriter.rb +21 -16
- data/lib/action_controller/vendor/html-scanner/html/document.rb +2 -2
- data/lib/action_controller/vendor/html-scanner/html/node.rb +30 -3
- data/lib/action_pack/version.rb +9 -0
- data/lib/action_view.rb +1 -1
- data/lib/action_view/base.rb +204 -60
- data/lib/action_view/compiled_templates.rb +70 -0
- data/lib/action_view/helpers/active_record_helper.rb +7 -3
- data/lib/action_view/helpers/asset_tag_helper.rb +22 -12
- data/lib/action_view/helpers/capture_helper.rb +2 -10
- data/lib/action_view/helpers/date_helper.rb +21 -13
- data/lib/action_view/helpers/form_helper.rb +14 -10
- data/lib/action_view/helpers/form_options_helper.rb +4 -4
- data/lib/action_view/helpers/form_tag_helper.rb +59 -25
- data/lib/action_view/helpers/java_script_macros_helper.rb +188 -0
- data/lib/action_view/helpers/javascript_helper.rb +68 -133
- data/lib/action_view/helpers/javascripts/controls.js +427 -165
- data/lib/action_view/helpers/javascripts/dragdrop.js +256 -277
- data/lib/action_view/helpers/javascripts/effects.js +766 -277
- data/lib/action_view/helpers/javascripts/prototype.js +906 -218
- data/lib/action_view/helpers/javascripts/slider.js +258 -0
- data/lib/action_view/helpers/number_helper.rb +4 -3
- data/lib/action_view/helpers/pagination_helper.rb +42 -27
- data/lib/action_view/helpers/tag_helper.rb +25 -11
- data/lib/action_view/helpers/text_helper.rb +119 -13
- data/lib/action_view/helpers/upload_progress_helper.rb +2 -2
- data/lib/action_view/helpers/url_helper.rb +68 -21
- data/lib/action_view/partials.rb +17 -6
- data/lib/action_view/template_error.rb +19 -24
- data/rakefile +4 -3
- data/test/abstract_unit.rb +2 -1
- data/test/controller/action_pack_assertions_test.rb +62 -2
- data/test/controller/active_record_assertions_test.rb +5 -6
- data/test/controller/active_record_store_test.rb +23 -1
- data/test/controller/addresses_render_test.rb +4 -0
- data/test/controller/{base_tests.rb → base_test.rb} +4 -3
- data/test/controller/benchmark_test.rb +36 -0
- data/test/controller/caching_filestore.rb +22 -40
- data/test/controller/capture_test.rb +10 -1
- data/test/controller/cgi_test.rb +145 -23
- data/test/controller/components_test.rb +50 -0
- data/test/controller/custom_handler_test.rb +3 -3
- data/test/controller/fake_controllers.rb +24 -0
- data/test/controller/filters_test.rb +6 -6
- data/test/controller/flash_test.rb +6 -6
- data/test/controller/fragment_store_setting_test.rb +45 -0
- data/test/controller/helper_test.rb +1 -3
- data/test/controller/new_render_test.rb +119 -7
- data/test/controller/redirect_test.rb +11 -1
- data/test/controller/render_test.rb +34 -1
- data/test/controller/request_test.rb +14 -5
- data/test/controller/routing_test.rb +238 -42
- data/test/controller/send_file_test.rb +11 -10
- data/test/controller/session_management_test.rb +94 -0
- data/test/controller/test_test.rb +194 -5
- data/test/controller/url_rewriter_test.rb +46 -0
- data/test/fixtures/layouts/talk_from_action.rhtml +2 -0
- data/test/fixtures/layouts/yield.rhtml +2 -0
- data/test/fixtures/multipart/binary_file +0 -0
- data/test/fixtures/multipart/large_text_file +10 -0
- data/test/fixtures/multipart/mixed_files +0 -0
- data/test/fixtures/multipart/single_parameter +5 -0
- data/test/fixtures/multipart/text_file +10 -0
- data/test/fixtures/test/_customer_greeting.rhtml +1 -0
- data/test/fixtures/test/_hash_object.rhtml +1 -0
- data/test/fixtures/test/_person.rhtml +2 -0
- data/test/fixtures/test/action_talk_to_layout.rhtml +2 -0
- data/test/fixtures/test/content_for.rhtml +2 -0
- data/test/fixtures/test/potential_conflicts.rhtml +4 -0
- data/test/template/active_record_helper_test.rb +15 -8
- data/test/template/asset_tag_helper_test.rb +40 -16
- data/test/template/compiled_templates_tests.rb +63 -0
- data/test/template/date_helper_test.rb +80 -4
- data/test/template/form_helper_test.rb +48 -42
- data/test/template/form_options_helper_test.rb +40 -40
- data/test/template/form_tag_helper_test.rb +21 -15
- data/test/template/java_script_macros_helper_test.rb +56 -0
- data/test/template/javascript_helper_test.rb +70 -47
- data/test/template/number_helper_test.rb +2 -0
- data/test/template/tag_helper_test.rb +9 -0
- data/test/template/text_helper_test.rb +146 -1
- data/test/template/upload_progress_helper_testx.rb +11 -147
- data/test/template/url_helper_test.rb +90 -22
- data/test/testing_sandbox.rb +26 -0
- metadata +37 -7
- data/lib/action_controller/auto_complete.rb +0 -47
- data/lib/action_controller/deprecated_renders_and_redirects.rb +0 -76
- data/lib/action_controller/session.rb +0 -14
@@ -47,16 +47,11 @@ class SendFileTest < Test::Unit::TestCase
|
|
47
47
|
assert_not_nil response
|
48
48
|
assert_kind_of Proc, response.body
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
assert_nothing_raised { response.body.call }
|
56
|
-
assert_equal file_data, $stdout.string
|
57
|
-
ensure
|
58
|
-
$stdout = old_stdout
|
59
|
-
end
|
50
|
+
require 'stringio'
|
51
|
+
output = StringIO.new
|
52
|
+
output.binmode
|
53
|
+
assert_nothing_raised { response.body.call(response, output) }
|
54
|
+
assert_equal file_data, output.string
|
60
55
|
end
|
61
56
|
|
62
57
|
def test_data
|
@@ -90,5 +85,11 @@ class SendFileTest < Test::Unit::TestCase
|
|
90
85
|
assert_equal 'type', h['Content-Type']
|
91
86
|
assert_equal 'disposition; filename="filename"', h['Content-Disposition']
|
92
87
|
assert_equal 'binary', h['Content-Transfer-Encoding']
|
88
|
+
|
89
|
+
# test overriding Cache-Control: no-cache header to fix IE open/save dialog
|
90
|
+
@controller.headers = { 'Cache-Control' => 'no-cache' }
|
91
|
+
@controller.send(:send_file_headers!, options)
|
92
|
+
h = @controller.headers
|
93
|
+
assert_equal 'private', h['Cache-Control']
|
93
94
|
end
|
94
95
|
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../abstract_unit'
|
2
|
+
|
3
|
+
class SessionManagementTest < Test::Unit::TestCase
|
4
|
+
class SessionOffController < ActionController::Base
|
5
|
+
session :off
|
6
|
+
|
7
|
+
def show
|
8
|
+
render_text "done"
|
9
|
+
end
|
10
|
+
|
11
|
+
def tell
|
12
|
+
render_text "done"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
class TestController < ActionController::Base
|
17
|
+
session :off, :only => :show
|
18
|
+
session :session_secure => true, :except => :show
|
19
|
+
session :off, :only => :conditional,
|
20
|
+
:if => Proc.new { |r| r.parameters[:ws] }
|
21
|
+
|
22
|
+
def show
|
23
|
+
render_text "done"
|
24
|
+
end
|
25
|
+
|
26
|
+
def tell
|
27
|
+
render_text "done"
|
28
|
+
end
|
29
|
+
|
30
|
+
def conditional
|
31
|
+
render_text ">>>#{params[:ws]}<<<"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class SpecializedController < SessionOffController
|
36
|
+
session :disabled => false, :only => :something
|
37
|
+
|
38
|
+
def something
|
39
|
+
render_text "done"
|
40
|
+
end
|
41
|
+
|
42
|
+
def another
|
43
|
+
render_text "done"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def setup
|
48
|
+
@request, @response = ActionController::TestRequest.new,
|
49
|
+
ActionController::TestResponse.new
|
50
|
+
end
|
51
|
+
|
52
|
+
def test_session_off_globally
|
53
|
+
@controller = SessionOffController.new
|
54
|
+
get :show
|
55
|
+
assert_equal false, @request.session_options
|
56
|
+
get :tell
|
57
|
+
assert_equal false, @request.session_options
|
58
|
+
end
|
59
|
+
|
60
|
+
def test_session_off_conditionally
|
61
|
+
@controller = TestController.new
|
62
|
+
get :show
|
63
|
+
assert_equal false, @request.session_options
|
64
|
+
get :tell
|
65
|
+
assert_instance_of Hash, @request.session_options
|
66
|
+
assert @request.session_options[:session_secure]
|
67
|
+
end
|
68
|
+
|
69
|
+
def test_controller_specialization_overrides_settings
|
70
|
+
@controller = SpecializedController.new
|
71
|
+
get :something
|
72
|
+
assert_instance_of Hash, @request.session_options
|
73
|
+
get :another
|
74
|
+
assert_equal false, @request.session_options
|
75
|
+
end
|
76
|
+
|
77
|
+
def test_session_off_with_if
|
78
|
+
@controller = TestController.new
|
79
|
+
get :conditional
|
80
|
+
assert_instance_of Hash, @request.session_options
|
81
|
+
get :conditional, :ws => "ws"
|
82
|
+
assert_equal false, @request.session_options
|
83
|
+
end
|
84
|
+
|
85
|
+
def test_session_store_setting
|
86
|
+
ActionController::Base.session_store = :drb_store
|
87
|
+
assert_equal CGI::Session::DRbStore, ActionController::Base.session_store
|
88
|
+
|
89
|
+
if Object.const_defined?(:ActiveRecord)
|
90
|
+
ActionController::Base.session_store = :active_record_store
|
91
|
+
assert_equal CGI::Session::ActiveRecordStore, ActionController::Base.session_store
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -1,9 +1,11 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/../abstract_unit'
|
2
|
+
require File.dirname(__FILE__) + '/fake_controllers'
|
2
3
|
|
3
4
|
class TestTest < Test::Unit::TestCase
|
4
5
|
class TestController < ActionController::Base
|
5
6
|
def set_flash
|
6
7
|
flash["test"] = ">#{flash["test"]}<"
|
8
|
+
render :text => 'ignore me'
|
7
9
|
end
|
8
10
|
|
9
11
|
def test_params
|
@@ -18,6 +20,7 @@ class TestTest < Test::Unit::TestCase
|
|
18
20
|
render :text => <<HTML
|
19
21
|
<html>
|
20
22
|
<body>
|
23
|
+
<a href="/"><img src="/images/button.png" /></a>
|
21
24
|
<div id="foo">
|
22
25
|
<ul>
|
23
26
|
<li class="item">hello</li>
|
@@ -35,7 +38,11 @@ HTML
|
|
35
38
|
end
|
36
39
|
|
37
40
|
def test_only_one_param
|
38
|
-
render :text => (
|
41
|
+
render :text => (params[:left] && params[:right]) ? "EEP, Both here!" : "OK"
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_remote_addr
|
45
|
+
render :text => (request.remote_addr || "not specified")
|
39
46
|
end
|
40
47
|
end
|
41
48
|
|
@@ -52,12 +59,12 @@ HTML
|
|
52
59
|
|
53
60
|
def test_process_without_flash
|
54
61
|
process :set_flash
|
55
|
-
|
62
|
+
assert_equal '><', flash['test']
|
56
63
|
end
|
57
64
|
|
58
65
|
def test_process_with_flash
|
59
66
|
process :set_flash, nil, nil, { "test" => "value" }
|
60
|
-
|
67
|
+
assert_equal '>value<', flash['test']
|
61
68
|
end
|
62
69
|
|
63
70
|
def test_process_with_request_uri_with_no_params
|
@@ -83,7 +90,134 @@ HTML
|
|
83
90
|
assert_equal "OK", @response.body
|
84
91
|
end
|
85
92
|
|
86
|
-
def
|
93
|
+
def test_assert_tag_tag
|
94
|
+
process :test_html_output
|
95
|
+
|
96
|
+
# there is a 'form' tag
|
97
|
+
assert_tag :tag => 'form'
|
98
|
+
# there is not an 'hr' tag
|
99
|
+
assert_no_tag :tag => 'hr'
|
100
|
+
end
|
101
|
+
|
102
|
+
def test_assert_tag_attributes
|
103
|
+
process :test_html_output
|
104
|
+
|
105
|
+
# there is a tag with an 'id' of 'bar'
|
106
|
+
assert_tag :attributes => { :id => "bar" }
|
107
|
+
# there is no tag with a 'name' of 'baz'
|
108
|
+
assert_no_tag :attributes => { :name => "baz" }
|
109
|
+
end
|
110
|
+
|
111
|
+
def test_assert_tag_parent
|
112
|
+
process :test_html_output
|
113
|
+
|
114
|
+
# there is a tag with a parent 'form' tag
|
115
|
+
assert_tag :parent => { :tag => "form" }
|
116
|
+
# there is no tag with a parent of 'input'
|
117
|
+
assert_no_tag :parent => { :tag => "input" }
|
118
|
+
end
|
119
|
+
|
120
|
+
def test_assert_tag_child
|
121
|
+
process :test_html_output
|
122
|
+
|
123
|
+
# there is a tag with a child 'input' tag
|
124
|
+
assert_tag :child => { :tag => "input" }
|
125
|
+
# there is no tag with a child 'strong' tag
|
126
|
+
assert_no_tag :child => { :tag => "strong" }
|
127
|
+
end
|
128
|
+
|
129
|
+
def test_assert_tag_ancestor
|
130
|
+
process :test_html_output
|
131
|
+
|
132
|
+
# there is a 'li' tag with an ancestor having an id of 'foo'
|
133
|
+
assert_tag :ancestor => { :attributes => { :id => "foo" } }, :tag => "li"
|
134
|
+
# there is no tag of any kind with an ancestor having an href matching 'foo'
|
135
|
+
assert_no_tag :ancestor => { :attributes => { :href => /foo/ } }
|
136
|
+
end
|
137
|
+
|
138
|
+
def test_assert_tag_descendant
|
139
|
+
process :test_html_output
|
140
|
+
|
141
|
+
# there is a tag with a decendant 'li' tag
|
142
|
+
assert_tag :descendant => { :tag => "li" }
|
143
|
+
# there is no tag with a descendant 'html' tag
|
144
|
+
assert_no_tag :descendant => { :tag => "html" }
|
145
|
+
end
|
146
|
+
|
147
|
+
def test_assert_tag_sibling
|
148
|
+
process :test_html_output
|
149
|
+
|
150
|
+
# there is a tag with a sibling of class 'item'
|
151
|
+
assert_tag :sibling => { :attributes => { :class => "item" } }
|
152
|
+
# there is no tag with a sibling 'ul' tag
|
153
|
+
assert_no_tag :sibling => { :tag => "ul" }
|
154
|
+
end
|
155
|
+
|
156
|
+
def test_assert_tag_after
|
157
|
+
process :test_html_output
|
158
|
+
|
159
|
+
# there is a tag following a sibling 'div' tag
|
160
|
+
assert_tag :after => { :tag => "div" }
|
161
|
+
# there is no tag following a sibling tag with id 'bar'
|
162
|
+
assert_no_tag :after => { :attributes => { :id => "bar" } }
|
163
|
+
end
|
164
|
+
|
165
|
+
def test_assert_tag_before
|
166
|
+
process :test_html_output
|
167
|
+
|
168
|
+
# there is a tag preceeding a tag with id 'bar'
|
169
|
+
assert_tag :before => { :attributes => { :id => "bar" } }
|
170
|
+
# there is no tag preceeding a 'form' tag
|
171
|
+
assert_no_tag :before => { :tag => "form" }
|
172
|
+
end
|
173
|
+
|
174
|
+
def test_assert_tag_children_count
|
175
|
+
process :test_html_output
|
176
|
+
|
177
|
+
# there is a tag with 2 children
|
178
|
+
assert_tag :children => { :count => 2 }
|
179
|
+
# there is no tag with 4 children
|
180
|
+
assert_no_tag :children => { :count => 4 }
|
181
|
+
end
|
182
|
+
|
183
|
+
def test_assert_tag_children_less_than
|
184
|
+
process :test_html_output
|
185
|
+
|
186
|
+
# there is a tag with less than 5 children
|
187
|
+
assert_tag :children => { :less_than => 5 }
|
188
|
+
# there is no 'ul' tag with less than 2 children
|
189
|
+
assert_no_tag :children => { :less_than => 2 }, :tag => "ul"
|
190
|
+
end
|
191
|
+
|
192
|
+
def test_assert_tag_children_greater_than
|
193
|
+
process :test_html_output
|
194
|
+
|
195
|
+
# there is a 'body' tag with more than 1 children
|
196
|
+
assert_tag :children => { :greater_than => 1 }, :tag => "body"
|
197
|
+
# there is no tag with more than 10 children
|
198
|
+
assert_no_tag :children => { :greater_than => 10 }
|
199
|
+
end
|
200
|
+
|
201
|
+
def test_assert_tag_children_only
|
202
|
+
process :test_html_output
|
203
|
+
|
204
|
+
# there is a tag containing only one child with an id of 'foo'
|
205
|
+
assert_tag :children => { :count => 1,
|
206
|
+
:only => { :attributes => { :id => "foo" } } }
|
207
|
+
# there is no tag containing only one 'li' child
|
208
|
+
assert_no_tag :children => { :count => 1, :only => { :tag => "li" } }
|
209
|
+
end
|
210
|
+
|
211
|
+
def test_assert_tag_content
|
212
|
+
process :test_html_output
|
213
|
+
|
214
|
+
# the output contains the string "Name"
|
215
|
+
assert_tag :content => "Name"
|
216
|
+
# the output does not contain the string "test"
|
217
|
+
assert_no_tag :content => "test"
|
218
|
+
end
|
219
|
+
|
220
|
+
def test_assert_tag_multiple
|
87
221
|
process :test_html_output
|
88
222
|
|
89
223
|
# there is a 'div', id='bar', with an immediate child whose 'action'
|
@@ -100,10 +234,34 @@ HTML
|
|
100
234
|
:only => { :tag => "li" } } }
|
101
235
|
end
|
102
236
|
|
103
|
-
def
|
237
|
+
def test_assert_tag_children_without_content
|
238
|
+
process :test_html_output
|
239
|
+
|
240
|
+
# there is a form tag with an 'input' child which is a self closing tag
|
241
|
+
assert_tag :tag => "form",
|
242
|
+
:children => { :count => 1,
|
243
|
+
:only => { :tag => "input" } }
|
244
|
+
|
245
|
+
# the body tag has an 'a' child which in turn has an 'img' child
|
246
|
+
assert_tag :tag => "body",
|
247
|
+
:children => { :count => 1,
|
248
|
+
:only => { :tag => "a",
|
249
|
+
:children => { :count => 1,
|
250
|
+
:only => { :tag => "img" } } } }
|
251
|
+
end
|
252
|
+
|
253
|
+
def test_assert_generates
|
104
254
|
assert_generates 'controller/action/5', :controller => 'controller', :action => 'action', :id => '5'
|
105
255
|
end
|
106
256
|
|
257
|
+
def test_assert_routing
|
258
|
+
assert_routing 'content', :controller => 'content', :action => 'index'
|
259
|
+
end
|
260
|
+
|
261
|
+
def test_assert_routing_in_module
|
262
|
+
assert_routing 'admin/user', :controller => 'admin/user', :action => 'index'
|
263
|
+
end
|
264
|
+
|
107
265
|
def test_params_passing
|
108
266
|
get :test_params, :page => {:name => "Page name", :month => '4', :year => '2004', :day => '6'}
|
109
267
|
parsed_params = eval(@response.body)
|
@@ -154,4 +312,35 @@ HTML
|
|
154
312
|
assert ActionController::Routing::Routes
|
155
313
|
assert_equal routes_id, ActionController::Routing::Routes.object_id
|
156
314
|
end
|
315
|
+
|
316
|
+
def test_remote_addr
|
317
|
+
get :test_remote_addr
|
318
|
+
assert_equal "0.0.0.0", @response.body
|
319
|
+
|
320
|
+
@request.remote_addr = "192.0.0.1"
|
321
|
+
get :test_remote_addr
|
322
|
+
assert_equal "192.0.0.1", @response.body
|
323
|
+
end
|
324
|
+
|
325
|
+
def test_header_properly_reset_after_remote_http_request
|
326
|
+
xhr :get, :test_params
|
327
|
+
assert_nil @request.env['HTTP_X_REQUESTED_WITH']
|
328
|
+
end
|
329
|
+
|
330
|
+
%w(controller response request).each do |variable|
|
331
|
+
%w(get post put delete head process).each do |method|
|
332
|
+
define_method("test_#{variable}_missing_for_#{method}_raises_error") do
|
333
|
+
remove_instance_variable "@#{variable}"
|
334
|
+
begin
|
335
|
+
send(method, :test_remote_addr)
|
336
|
+
assert false, "expected RuntimeError, got nothing"
|
337
|
+
rescue RuntimeError => error
|
338
|
+
assert true
|
339
|
+
assert_match %r{@#{variable} is nil}, error.message
|
340
|
+
rescue => error
|
341
|
+
assert false, "expected RuntimeError, got #{error.class}"
|
342
|
+
end
|
343
|
+
end
|
344
|
+
end
|
345
|
+
end
|
157
346
|
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../abstract_unit'
|
2
|
+
|
3
|
+
class UrlRewriterTests < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
@request = ActionController::TestRequest.new
|
6
|
+
@params = {}
|
7
|
+
@rewriter = ActionController::UrlRewriter.new(@request, @params)
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_simple_build_query_string
|
11
|
+
assert_query_equal '?x=1&y=2', @rewriter.send(:build_query_string, :x => '1', :y => '2')
|
12
|
+
end
|
13
|
+
def test_convert_ints_build_query_string
|
14
|
+
assert_query_equal '?x=1&y=2', @rewriter.send(:build_query_string, :x => 1, :y => 2)
|
15
|
+
end
|
16
|
+
def test_escape_spaces_build_query_string
|
17
|
+
assert_query_equal '?x=hello+world&y=goodbye+world', @rewriter.send(:build_query_string, :x => 'hello world', :y => 'goodbye world')
|
18
|
+
end
|
19
|
+
def test_expand_array_build_query_string
|
20
|
+
assert_query_equal '?x[]=1&x[]=2', @rewriter.send(:build_query_string, :x => [1, 2])
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_escape_spaces_build_query_string_selected_keys
|
24
|
+
assert_query_equal '?x=hello+world', @rewriter.send(:build_query_string, {:x => 'hello world', :y => 'goodbye world'}, [:x])
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_overwrite_params
|
28
|
+
@params[:controller] = 'hi'
|
29
|
+
@params[:action] = 'bye'
|
30
|
+
@params[:id] = '2'
|
31
|
+
|
32
|
+
assert_equal '/hi/hi/2', @rewriter.rewrite(:only_path => true, :overwrite_params => {:action => 'hi'})
|
33
|
+
u = @rewriter.rewrite(:only_path => false, :overwrite_params => {:action => 'hi'})
|
34
|
+
assert_match %r(/hi/hi/2$), u
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
private
|
39
|
+
def split_query_string(str)
|
40
|
+
[str[0].chr] + str[1..-1].split(/&/).sort
|
41
|
+
end
|
42
|
+
|
43
|
+
def assert_query_equal(q1, q2)
|
44
|
+
assert_equal(split_query_string(q1), split_query_string(q2))
|
45
|
+
end
|
46
|
+
end
|
Binary file
|
@@ -0,0 +1,10 @@
|
|
1
|
+
--AaB03x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