spec/internal/app/controllers/test_controller.rb in mobile-enhancements-0.0.2 vs spec/internal/app/controllers/test_controller.rb in mobile-enhancements-0.0.3
- old
+ new
@@ -3,6 +3,18 @@
render text: [action_name, request.format.to_sym].join(", ")
end
alias_method :two, :one
alias_method :three, :one
alias_method :four, :one
+
+ def path_checking
+ render text: optional_mobile_url
+ end
+
+ def redirect_checking
+ redirect_to(optional_mobile_url)
+ end
+
+ def fixed_redirect_checking
+ redirect_to(mobile_url(optional_mobile_url))
+ end
end
\ No newline at end of file