Joshua Peek
7f1f16c01f
Deprecate assert_redirect_to's partial hash matching. This will be fully removed in 3.0.
2009-05-04 20:24:49 -05:00
Wincent Colaiuta
5ac05f15c6
Extract ActionController::Caching::Sweeper into separate file [ #1977 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-05-04 20:17:27 -05:00
Tim Connor
49169f7a6a
fix problems with requires in metal choking under development reloading [ #2579 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-05-04 20:12:16 -05:00
codebrulee
ebe8dd6108
Remove stray underscore from the hash conversion methods which broke backwards compatibility with Hash.from_xml
...
Also add an all-caps test to prevent future regressions
2009-05-04 09:51:35 -07:00
Ruy Asan
17e712d3a3
Added routing test for irregular ID requirements and custom member action.
...
[#2595 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-05-01 15:02:51 -07:00
Ruy Asan
93c557828e
Fixed bug with polymorphic has_one :as pointing to an STI record
...
[#2594 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-05-01 14:49:38 -07:00
Alexander Podgorbunsky
628b4ad679
Default scope :order should be overridden by named scopes.
...
[#2346 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-05-01 14:45:35 -07:00
Jeremy Kemper
a5ed7eede6
Missed commit for 7c4b325e0a
2009-04-30 16:49:34 -07:00
John F. Douthat
d1d1894c2f
Fix action-cached exception responses.
...
Methods raising ActiveRecord::RecordNotFound were returning 404 on first request and 200 OK with blank body on subsequent requests.
[#2533 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-04-30 16:48:07 -07:00
Jeremy Kemper
7c4b325e0a
Fix render :json => nil [ #2589 state:resolved]
2009-04-30 16:47:42 -07:00
David Dollar
00eee49e1e
Additional tests for the gem subsystem
...
* test_gem_ignores_development_dependencies
* test_gem_guards_against_duplicate_unpacks
* test_gem_does_not_unpack_framework_gems
[#2236 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-04-29 08:08:48 -07:00
David Dollar
6e3bede928
Attempt to deal with more cases of gems with native components.
...
This commit adds a rudimentary check for 'unbuilt' gems, so that we can abort
the application load if there are any gems that have native components that
have not yet been built.
The rake task gems:build has now only builds 'unbuilt' gems as a result.
The rake task gems:build:force has been added to deal with cases of incomplete
builds, or any case where you need to force the build of all of your gems.
Changes the gems:build task to get its gem list by parsing directory entries
in vendor/gems, which sidesteps the chicken/egg issues involved with having a
gem unpacked into vendor/gems without before its native bits are compiled.
[#2266 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-04-28 23:19:18 -07:00
Stephen Bannasch
4b68debb1c
add JRuby-JDOM backend for XmlMini
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-04-26 16:23:22 -07:00
Hongli Lai (Phusion)
2633108e1f
Fix environment variable testing code in failsafe.rb.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-04-26 11:22:44 -05:00
Hongli Lai (Phusion)
5e57e2fa58
Remove reference to Rack::RewindableInput, which has been removed a while ago.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-04-26 11:21:15 -05:00
Yehuda Katz
cb9a1f17f0
Updated 2-3-stable to Rack 1.0
2009-04-25 12:47:51 -07:00
Joshua Peek
61a1456937
Remove RewindableInput middleware since all input MUST be rewindable according to a recent change in the Rack 1.0 SPEC
2009-04-25 14:05:58 -05:00
Joshua Peek
16f36b6171
Remove vendored version of Rack
2009-04-25 13:59:26 -05:00
Joshua Peek
2d9b45722c
Remove pending rack specifications until they are official
2009-04-25 13:44:34 -05:00
Jeremy Kemper
617d7eb57b
Merge branch '2-3-stable' of git@github.com:rails/rails into 2-3-stable
2009-04-22 01:08:53 -07:00
Pratik Naik
09a976ac58
Change table to prevent copying indexes on sqlite2
2009-04-21 13:29:00 +01:00
Pratik Naik
5bbd097ce9
Specify :group with the table name for it to work on sqlite3
2009-04-21 13:12:15 +01:00
Pratik Naik
3267097393
Fix tests for sqlite3 3.6.xx
2009-04-21 13:08:26 +01:00
Max Lapshin
5a4603fafb
Fixed dumping from postgresql columns in index in wrong order. [ #2515 state:resolved]
...
Signed-off-by: Tarmo Tänav <tarmo@itech.ee >
2009-04-21 11:45:02 +01:00
Scott Woods
70ba90b072
Quote table names when casting to regclass so that capitalized tables are supported. [ #2418 state:resolved]
...
Signed-off-by: Tarmo Tänav <tarmo@itech.ee >
2009-04-21 11:44:54 +01:00
Max Lapshin
de4cc53f74
Fixed wrong quoting of index names in postgres [ #2402 state:resolved]
...
Signed-off-by: Tarmo Tänav <tarmo@itech.ee >
2009-04-21 11:44:47 +01:00
Max Lapshin
6060123470
Support multiple schemas in table names for postgresql [ #390 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-04-21 11:40:12 +01:00
Pratik Naik
fc2421b784
Ensure :dependent => :delete_all works for association with hash conditions
2009-04-21 11:33:27 +01:00
Pratik Naik
375e8976e3
Ensure JoinAssociation uses aliased table name when multiple associations have hash conditions on the same table
2009-04-20 13:56:03 +01:00
Mislav Marohnić
35c5727ace
Always buffer rack.input if it is not rewindable
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-04-17 21:54:09 -05:00
Mislav Marohnić
878aec9d95
Improve rewindable input test coverage so tests fail when you remove the middleware
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-04-17 19:35:25 -05:00
Jeremy Kemper
c9a3d99164
Clearer String#first and #last edge cases. Fix that foo.first(0) == instead of foo.
2009-04-17 18:06:47 -05:00
David Heinemeier Hansson
fa750e08a8
Added :touch option to belongs_to associations that will touch the parent record when the current record is saved or destroyed [DHH]
2009-04-16 17:26:10 -05:00
David Heinemeier Hansson
50e867480a
Added ActiveRecord::Base#touch to update the updated_at/on attributes with the current time [DHH]
2009-04-16 16:48:07 -05:00
Doug McInnes
dc69d9308a
Fix for TestResponse.cookies returning cookies unescaped [ #1867 state:resolved]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2009-04-07 13:22:21 -05:00
Kenny Ortmann
ace154d067
added tests for session options being defaulted correctly to rack defaults [ #2403 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-04-07 11:08:04 -05:00
Ryan Angilly
651611999d
adding session_options initialization and test [ #2303 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-03-24 10:53:29 -05:00
thedarkone
6a1267a0b1
Fix template extension parsing. [ #2315 state:resolved] [ #2284 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-03-24 10:53:24 -05:00
thedarkone
d2e6a0fbc3
Simplify handling of absolute path templates. [ #2276 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-03-24 10:53:20 -05:00
David Dollar
dace54b2e9
Updates tests to cause the tests for the Request class not to proxy through a fake TestRequest object [ #2278 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-03-24 10:53:14 -05:00
Peter Marklund
daffa5cbdd
Reset request_parameters in TestRequest#recycle! to avoid multiple posts clobbering each other [ #2271 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-03-24 10:53:07 -05:00
Joshua Peek
c91912700d
just kill brittle test
2009-03-24 10:52:49 -05:00
Pratik Naik
dc88847e5c
Try to use actionpack gem to generate guide when Rails is not vendored
v2.3.2.1
2009-03-17 12:26:34 +00:00
Pratik Naik
18eb80ccc7
Merge docrails
2009-03-16 11:28:36 +00:00
Joshua Peek
4185a4a5f5
update rack fixture to be ruby 1.9 compat
2009-03-15 23:48:07 -05:00
Joshua Peek
0706de4301
Better error message to try to figure out why the CI build is failing
2009-03-15 23:41:47 -05:00
Joshua Peek
46c12fdcb6
ruby 1.9 compat: Pathname doesn't support =~
2009-03-15 23:29:00 -05:00
Joshua Peek
d0e5417861
update rack fixture to be ruby 1.9 compat
2009-03-15 23:25:12 -05:00
Joshua Peek
5a575bb992
update metal fixtures to be ruby 1.9 compat
2009-03-15 23:21:29 -05:00
Joshua Peek
367049cae6
Fix brittle Time.now mock
2009-03-15 23:17:31 -05:00