mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Make Rails Facebook-free
If Basecamp is a Facebook-free business, then Rails should be Facebook-free framework.
This commit is contained in:
parent
52a692fed0
commit
b17d8c83ed
1 changed files with 2 additions and 2 deletions
|
@ -355,10 +355,10 @@ class LegacyRouteSetTests < ActiveSupport::TestCase
|
|||
rs.draw { ActiveSupport::Deprecation.silence { get "/:controller/:action", action: /auth[-|_].+/ } }
|
||||
|
||||
assert_equal({ action: "auth_google", controller: "content" }, rs.recognize_path("/content/auth_google"))
|
||||
assert_equal({ action: "auth-facebook", controller: "content" }, rs.recognize_path("/content/auth-facebook"))
|
||||
assert_equal({ action: "auth-twitter", controller: "content" }, rs.recognize_path("/content/auth-twitter"))
|
||||
|
||||
assert_equal "/content/auth_google", url_for(rs, controller: "content", action: "auth_google")
|
||||
assert_equal "/content/auth-facebook", url_for(rs, controller: "content", action: "auth-facebook")
|
||||
assert_equal "/content/auth-twitter", url_for(rs, controller: "content", action: "auth-twitter")
|
||||
end
|
||||
|
||||
def test_route_with_regexp_for_controller
|
||||
|
|
Loading…
Reference in a new issue