Remove format specifier from RSS feed route tests

This commit is contained in:
Tom Hughes 2013-08-05 20:10:15 +01:00
parent 321f8cecdc
commit 70448559b2
3 changed files with 10 additions and 10 deletions

View file

@ -45,7 +45,7 @@ class ChangesetControllerTest < ActionController::TestCase
)
assert_routing(
{ :path => "/user/name/edits/feed", :method => :get },
{ :controller => "changeset", :action => "feed", :display_name => "name", :format => :atom }
{ :controller => "changeset", :action => "feed", :display_name => "name" }
)
assert_routing(
{ :path => "/browse/friends", :method => :get },
@ -61,7 +61,7 @@ class ChangesetControllerTest < ActionController::TestCase
)
assert_routing(
{ :path => "/browse/changesets/feed", :method => :get },
{ :controller => "changeset", :action => "feed", :format => :atom }
{ :controller => "changeset", :action => "feed" }
)
assert_recognizes(
{ :controller => "changeset", :action => "list" },
@ -72,7 +72,7 @@ class ChangesetControllerTest < ActionController::TestCase
{ :path => "/history", :method => :get }
)
assert_recognizes(
{ :controller => "changeset", :action => "feed", :format => :atom },
{ :controller => "changeset", :action => "feed" },
{ :path => "/history/feed", :method => :get }
)
end

View file

@ -31,15 +31,15 @@ class DiaryEntryControllerTest < ActionController::TestCase
assert_routing(
{ :path => "/diary/rss", :method => :get },
{ :controller => "diary_entry", :action => "rss", :format => :rss }
{ :controller => "diary_entry", :action => "rss" }
)
assert_routing(
{ :path => "/diary/language/rss", :method => :get },
{ :controller => "diary_entry", :action => "rss", :language => "language", :format => :rss }
{ :controller => "diary_entry", :action => "rss", :language => "language" }
)
assert_routing(
{ :path => "/user/username/diary/rss", :method => :get },
{ :controller => "diary_entry", :action => "rss", :display_name => "username", :format => :rss }
{ :controller => "diary_entry", :action => "rss", :display_name => "username" }
)
assert_routing(

View file

@ -88,19 +88,19 @@ class TraceControllerTest < ActionController::TestCase
assert_routing(
{ :path => "/traces/rss", :method => :get },
{ :controller => "trace", :action => "georss", :format => :rss }
{ :controller => "trace", :action => "georss" }
)
assert_routing(
{ :path => "/traces/tag/tagname/rss", :method => :get },
{ :controller => "trace", :action => "georss", :tag => "tagname", :format => :rss }
{ :controller => "trace", :action => "georss", :tag => "tagname" }
)
assert_routing(
{ :path => "/user/username/traces/rss", :method => :get },
{ :controller => "trace", :action => "georss", :display_name => "username", :format => :rss }
{ :controller => "trace", :action => "georss", :display_name => "username" }
)
assert_routing(
{ :path => "/user/username/traces/tag/tagname/rss", :method => :get },
{ :controller => "trace", :action => "georss", :display_name => "username", :tag => "tagname", :format => :rss }
{ :controller => "trace", :action => "georss", :display_name => "username", :tag => "tagname" }
)
assert_routing(