1
0
Fork 0
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:
Sasha Koss 2018-12-24 13:54:30 +05:30 committed by GitHub
parent 52a692fed0
commit b17d8c83ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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