Changeset 1251
- Timestamp:
- 04/30/05 08:34:02 (3 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/assertions.rb (modified) (1 diff)
- trunk/actionpack/test/controller/redirect_test.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r1249 r1251 1 1 *SVN* 2 3 * Fixed assert_redirected_to to work with :only_path => false #1204 [Alisdair McDiarmid] 2 4 3 5 * Fixed render_partial_collection to output an empty string instead of nil when handed an empty array #1202 [Ryan Carver] trunk/actionpack/lib/action_controller/assertions.rb
r1223 r1251 58 58 else 59 59 options.keys.all? do |k| 60 options[k] == (@response.redirected_to[k].respond_to?(:to_param) ? @response.redirected_to[k].to_param : @response.redirected_to[k] if @response.redirected_to[k])60 options[k] == (@response.redirected_to[k].respond_to?(:to_param) ? @response.redirected_to[k].to_param : @response.redirected_to[k] unless @response.redirected_to[k].nil?) 61 61 end 62 62 end trunk/actionpack/test/controller/redirect_test.rb
r786 r1251 10 10 end 11 11 12 def host_redirect 13 redirect_to :action => "other_host", :only_path => false, :host => 'other.test.host' 14 end 15 12 16 def rescue_errors(e) raise e end 13 17 … … 34 38 assert_redirect_url "http://test.host/redirect/dashboard/1?message=hello" 35 39 end 40 41 def test_simple_redirect_using_options 42 get :host_redirect 43 assert_redirected_to :action => "other_host", :only_path => false, :host => 'other.test.host' 44 end 36 45 end