0
@@ -187,7 +187,7 @@ class ResourcesTest < ActionController::TestCase
0
assert_restful_named_routes_for :messages, :path_prefix => 'threads/1/', :name_prefix => 'thread_', :options => { :thread_id => '1' } do |options|
0
actions.keys.each do |action|
0
- assert_named_route "/threads/1/messages/#{action}.xml", "
formatted_#{action}_thread_messages_path", :action => action, :format => 'xml'
0
+ assert_named_route "/threads/1/messages/#{action}.xml", "
#{action}_thread_messages_path", :action => action, :format => 'xml'
0
@@ -316,7 +316,7 @@ class ResourcesTest < ActionController::TestCase
0
assert_restful_named_routes_for :messages, :path_prefix => 'threads/1/', :name_prefix => 'thread_', :options => { :thread_id => '1' } do |options|
0
- assert_named_route preview_path, :
formatted_preview_new_thread_message_path, preview_options
0
+ assert_named_route preview_path, :
preview_new_thread_message_path, preview_options
0
@@ -1130,14 +1130,14 @@ class ResourcesTest < ActionController::TestCase
0
assert_named_route "#{full_path}", "#{name_prefix}#{controller_name}_path", options[:options]
0
- assert_named_route "#{full_path}.xml", "
formatted_#{name_prefix}#{controller_name}_path", options[:options].merge(:format => 'xml')
0
+ assert_named_route "#{full_path}.xml", "
#{name_prefix}#{controller_name}_path", options[:options].merge(:format => 'xml')
0
assert_named_route "#{shallow_path}/1", "#{shallow_prefix}#{singular_name}_path", options[:shallow_options].merge(:id => '1')
0
- assert_named_route "#{shallow_path}/1.xml", "
formatted_#{shallow_prefix}#{singular_name}_path", options[:shallow_options].merge(:id => '1', :format => 'xml')
0
+ assert_named_route "#{shallow_path}/1.xml", "
#{shallow_prefix}#{singular_name}_path", options[:shallow_options].merge(:id => '1', :format => 'xml')
0
assert_named_route "#{full_path}/#{new_action}", "new_#{name_prefix}#{singular_name}_path", options[:options]
0
- assert_named_route "#{full_path}/#{new_action}.xml", "
formatted_new_#{name_prefix}#{singular_name}_path", options[:options].merge(:format => 'xml')
0
+ assert_named_route "#{full_path}/#{new_action}.xml", "
new_#{name_prefix}#{singular_name}_path", options[:options].merge(:format => 'xml')
0
assert_named_route "#{shallow_path}/1/#{edit_action}", "edit_#{shallow_prefix}#{singular_name}_path", options[:shallow_options].merge(:id => '1')
0
- assert_named_route "#{shallow_path}/1/#{edit_action}.xml", "
formatted_edit_#{shallow_prefix}#{singular_name}_path", options[:shallow_options].merge(:id => '1', :format => 'xml')
0
+ assert_named_route "#{shallow_path}/1/#{edit_action}.xml", "
edit_#{shallow_prefix}#{singular_name}_path", options[:shallow_options].merge(:id => '1', :format => 'xml')
0
yield options[:options] if block_given?
0
@@ -1189,12 +1189,12 @@ class ResourcesTest < ActionController::TestCase
0
name_prefix = options[:name_prefix]
0
assert_named_route "#{full_path}", "#{name_prefix}#{singleton_name}_path", options[:options]
0
- assert_named_route "#{full_path}.xml", "
formatted_#{name_prefix}#{singleton_name}_path", options[:options].merge(:format => 'xml')
0
+ assert_named_route "#{full_path}.xml", "
#{name_prefix}#{singleton_name}_path", options[:options].merge(:format => 'xml')
0
assert_named_route "#{full_path}/new", "new_#{name_prefix}#{singleton_name}_path", options[:options]
0
- assert_named_route "#{full_path}/new.xml", "
formatted_new_#{name_prefix}#{singleton_name}_path", options[:options].merge(:format => 'xml')
0
+ assert_named_route "#{full_path}/new.xml", "
new_#{name_prefix}#{singleton_name}_path", options[:options].merge(:format => 'xml')
0
assert_named_route "#{full_path}/edit", "edit_#{name_prefix}#{singleton_name}_path", options[:options]
0
- assert_named_route "#{full_path}/edit.xml", "
formatted_edit_#{name_prefix}#{singleton_name}_path", options[:options].merge(:format => 'xml')
0
+ assert_named_route "#{full_path}/edit.xml", "
edit_#{name_prefix}#{singleton_name}_path", options[:options].merge(:format => 'xml')
0
def assert_named_route(expected, route, options)
FYI, missing a space between “standard” and the route method name in this deprecation warning text.