aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/route_inspect_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Improve `rake routes` output for redirects - closes #6369.Andrew White2012-05-191-4/+7
|
* Fix inspecting route redirections, closes #6369Łukasz Strzałkowski2012-05-181-0/+9
| | | | | | | | | | | | This commit fixes route inspection in `rake routes` Before: foo /foo(.:format) :controller#:action" After: foo /foo(.:format) Redirect (301)
* More DRY route inspect testsŁukasz Strzałkowski2012-05-181-26/+18
|
* Fix missing Rails.env in route inspect testsYehuda Katz2012-04-251-0/+1
|
* Clean up some straggling build failuresJose and Yehuda2012-04-241-7/+7
|
* Remove default match without specified methodJose and Yehuda2012-04-241-7/+7
| | | | | | | | | | | | | | | | In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964
* fixes a test: rake routes now includes PATCH for resourcesXavier Noria2012-02-241-0/+1
|
* Don't hardcode assets route skipped in route inspectorGuillermo Iguaran2012-01-141-0/+14
|
* require minitest rather than test/unitAaron Patterson2012-01-061-1/+1
|
* convert railties to use AS::TestCaseAaron Patterson2012-01-051-1/+1
|
* Correctly display rack apps with dynamic constraints in RoutesInspectorPiotr Sarnacki2011-12-261-0/+17
| | | | | | | | | | | | | If you used dynamic constraint like that: scope :constraint => MyConstraint.new do mount RackApp => "/foo" end routes were not displayed correctly when using `rake routes`. This commit fixes it. If you want nice display of dynamic constraints in `rake routes` output, please just override to_s method in your constraint's class.
* Display mounted engines in `rake routes` by defaultPiotr Sarnacki2011-11-251-4/+0
|
* Allow to display engine's routes when running `rake routes ENGINES=true`Piotr Sarnacki2011-11-241-0/+30
|
* On inpsect routes, show :controller and :action to indicate dynamic.Hendy Tanata2011-10-291-2/+10
|
* move route inspecting to an object so that we can more easily test itAaron Patterson2011-09-091-0/+97