Commit Graph

13589 Commits

Author SHA1 Message Date
wycats
45e8cf59df init.rb in plugins is here to stay 2010-03-23 16:35:14 -07:00
José Valim
b92963f9f8 Use latest I18n (0.3.6). 2010-03-23 23:53:38 +01:00
José Valim
5c41cb77d9 Ensure lib/rails/initializers/*.rb also works for gems. 2010-03-23 23:50:53 +01:00
wycats
cc0e402aa8 Protect routes again so they don't end up as actions. We need a better solution than this. 2010-03-23 14:09:08 -07:00
Joshua Peek
e47a1d7865 Load plugin initializers from lib/rails/initializers/*.rb 2010-03-23 15:36:32 -05:00
José Valim
b9f551ac15 Explicitly require files before monkey patching them. 2010-03-23 17:48:29 +01:00
Sebastian Martinez
a5e98d7067 updated Rakefile with new app generator path [#4258 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-23 17:35:19 +01:00
Sebastian Martinez
10825be40b rake tasks should use the new app generator path [#4257 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-23 14:26:27 +01:00
José Valim
05ec99eed9 bin/rails should use the new app generator path. 2010-03-23 14:12:58 +01:00
José Valim
b61f6f5980 Load generators from both lib/rails/generators and lib/generators. Using the former since it's less obstrusive. 2010-03-23 13:40:41 +01:00
wycats
b144b56d82 Put MRI-specific dependencies in an MRI group 2010-03-22 20:32:31 -07:00
wycats
15c31c7639 open_session can just return the a dup of the current context.
At this point, its entire purpose in the open_session {} case was to
delegate back to the IntegrationTest anyway.
2010-03-22 17:14:28 -07:00
José Valim
1f93a46b43 Merge branch 'master' of gitproxy:rails/rails 2010-03-23 00:27:07 +01:00
José Valim
c53f77f3be Rename unsignificant to insignificant. 2010-03-23 00:26:12 +01:00
José Valim
13bb4a6e68 Current url helpers become actions in controller. Added a failing test case for it. 2010-03-22 23:57:06 +01:00
wycats
0b16c7602d No -rubygems needed 2010-03-22 14:17:49 -07:00
wycats
d03af48a7d Provide a better error if thor is missing 2010-03-22 14:09:00 -07:00
Bernardo de Pádua
a4090bca6a NumberHelper methods should now return html_safe strings (when the inputs are valid numbers or are html_safe). Also adds :raise => true (used internaly) to make the number helpers throw InvalidNumberError when the given number is invalid.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-22 21:19:49 +01:00
Bernardo de Pádua
75904c566e Adds number_to_human and several improvements in NumberHelper. [#4239 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-22 21:19:49 +01:00
José Valim
e8a80cdded Controller generators should use routes shortcut. 2010-03-22 21:07:37 +01:00
José Valim
4998e097cc Make router shortcuts more polite to URLs starting with a leading slash. 2010-03-22 21:07:37 +01:00
José Valim
fb89aba8b4 Killing fixtures in mailer before they kill me (they usually lead to very brittle tests). 2010-03-22 21:07:37 +01:00
Emilio Tagua
d289e15af9 From and lock should be defined to be consistent with other ivars. Limit and offset are always defined, no need to test that.
[#4253 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-22 11:48:39 -07:00
Evan Phoenix
4f5de7f89a Reset class attribute after changing it 2010-03-22 10:00:04 -07:00
Evan Phoenix
ab3503b496 Remove test ordering bug
Don't reuse classes with class attributes when testing different use cases
of class attributes.
2010-03-22 10:00:04 -07:00
Evan Phoenix
0b608abeb8 Clear the query cache between tests that test the query cache 2010-03-22 10:00:04 -07:00
Evan Phoenix
79b0861624 Remove obsolete use case that was broken in AR::Observers 2010-03-22 10:00:04 -07:00
Evan Phoenix
a307fd6bd3 Don't depend on order of elements in Set 2010-03-22 10:00:03 -07:00
Evan Phoenix
1e4be20672 Fix ActionMailer test issues
* Don't depend so much no the message in a NameError
* Reset the delivery method properly
2010-03-22 10:00:03 -07:00
Evan Phoenix
34497c0b36 Remove test ordering bug by using another class 2010-03-22 10:00:03 -07:00
Santiago Pastorino
3bd85e2748 db group makes more sense here 2010-03-22 02:55:28 -03:00
Santiago Pastorino
16cad60fd3 avoid active_support/core_ext/time/conversions.rb warnings
[#4250 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-21 18:16:18 -07:00
Jeremy Kemper
4884f28c80 Also revert mailer generator test changes in 8b50f89 2010-03-21 16:18:32 -07:00
Jeremy Kemper
49416550fe Fix regression introduced in 8b50f89. Generated views mentioned the wrong path. 2010-03-21 16:07:21 -07:00
Denis Odorcic
b7adec3563 Remove data-url support from url_helper [#4236 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-21 19:31:59 +01:00
Sebastian Martinez
0137566c85 do not support 'data-url' anymore, just use 'href' [#4236 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-21 19:31:54 +01:00
José Valim
8b50f89ba7 Make ERB generators more flexible and customizable. 2010-03-21 19:30:42 +01:00
Joshua Peek
87db863fa2 Remove invalid builtin tests since we aren't adding that dir to the
load path anymore
2010-03-20 15:14:59 -05:00
Joshua Peek
fcc6b12e77 Autoload Rails::Info 2010-03-20 14:03:43 -05:00
Joshua Peek
14b7452c57 Require info controller from info routes 2010-03-20 13:33:25 -05:00
Joshua Peek
f38e89cfba Move railties/builtin into lib 2010-03-20 12:34:21 -05:00
wycats
f868c2afa9 response_body is an Array in 1.9, so an Array was being pushed onto the cache 2010-03-19 18:56:06 -07:00
wycats
e1c030edd8 Fixed a bunch of tests that failed in 1.9 because they assumed that a Rack response was a String. 2010-03-19 18:46:29 -07:00
Sam Ruby
80095c54bd Controller generators should generate tests when action is supplied. [#3421 state:resolved] 2010-03-20 00:51:56 +01:00
José Valim
525382f638 Clean up Mime::Type and remove deprecated stuff (from 2.3). 2010-03-20 00:28:27 +01:00
wycats
9f92563892 Eliminate an error from an implicit dependency on AV::Base 2010-03-19 11:50:03 -07:00
Carlhuda
7f53dca1a1 Fix protect_against_forgery 2010-03-19 11:11:02 -07:00
José Valim
562154fcbc Controller generator now creates routes as well [#4233 state:resolved] 2010-03-19 18:12:54 +01:00
Aaron Patterson
541194f641 switching migrations to use require cleans up many warnings [#4234 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
2010-03-19 09:56:22 -07:00
José Valim
ae499b53ef Merge branch 'master' of gitproxy:rails/rails 2010-03-19 17:23:44 +01:00