1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

10 commits

Author SHA1 Message Date
Robin Dupret
5ad7f8ab41 Use Ruby 1.9 Hash syntax in railties 2012-10-14 18:26:58 +02:00
Jeremy Kemper
1dc2ea8f3d Tighten up asset precompile tests 2012-10-12 20:44:32 -07:00
Guillermo Iguaran
39928c8db2 Minor test refactoring: Use add_to_env instead of an initializer 2012-10-09 11:51:29 -05:00
Jose and Yehuda
56cdc81c08 Remove default match without specified method
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
2012-04-24 22:52:26 -05:00
Jeremy Kemper
e4f911aa2a Fix a couple more script[type=text/javascript] tests affected by #5748 2012-04-08 07:28:31 -07:00
Aaron Patterson
8f309e3105 convert railties to use AS::TestCase 2012-01-05 17:30:17 -08:00
Arun Agrawal
c8d0dc376a Warnings removed for "assert_match /" Please do
not add more.!
2011-09-04 08:23:13 +05:30
Guillermo Iguaran
87074600d3 Fix asset debugging tests to reflect last changes in 3-1-stable 2011-08-31 13:12:25 -05:00
Guillermo Iguaran
a071c9b667 Fix failing asset debug test under 1.8 2011-08-25 21:05:23 -05:00
Daniel Schierbeck
372892eaea Move asset debugging tests into a separate test case
Also:

- Refactor AssetDebuggingTest.
- Use the %r regexp syntax. That way we don't need to escape the /'s.
2011-08-25 11:57:16 +02:00