Emilio Tagua
f13a7bf4e1
Don't send table_name when updating attributes, use the class arel_table.
2009-10-07 12:21:52 -03:00
Emilio Tagua
942d4b2e4f
Don't send table_name when there's no need to.
2009-10-07 12:17:51 -03:00
Emilio Tagua
1d5854826b
Allow preload and eager_load to work on relations at the same time.
2009-10-07 11:57:59 -03:00
Emilio Tagua
c3b4da7796
Merge commit 'rails/master'
2009-10-06 16:17:02 -03:00
Michael Koziarski
126f623711
don't ignore all bin directories
2009-10-06 15:53:25 +13:00
Jeffrey Hardy
9212138ad0
MessageVerifier#verify raises InvalidSignature if the signature is blank
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-10-05 13:38:26 -07:00
Joshua Peek
b480da5cd6
Coerce all out going body parts to Strings
2009-10-05 13:58:43 -05:00
Emilio Tagua
97aba353c8
Merge commit 'rails/master'
2009-10-05 15:33:59 -03:00
Emilio Tagua
23c168a4fd
Initial documentation to Base#all.
2009-10-05 15:27:40 -03:00
Emilio Tagua
1daceeb838
Merge branch 'associations_2'
2009-10-05 15:25:06 -03:00
Emilio Tagua
65f055a3ed
Added eager loading support to Relation and ActiveRecord#all.
2009-10-05 15:24:08 -03:00
Emilio Tagua
3747f896a1
Moved relation's test to relation_test.
2009-10-05 14:39:20 -03:00
Joshua Peek
570f055c44
Yank FCGI Handler from core
...
http://github.com/rails/fcgi_handler
2009-10-05 11:16:24 -05:00
Joshua Peek
20d6938453
Rewrite FCGI handler test
2009-10-05 10:36:05 -05:00
Joshua Peek
7de5f69cc6
Try to load lib before trying to activate the gem for testing
2009-10-05 10:01:46 -05:00
Joshua Peek
444ba150bd
Put test in place for deprecated dispatcher
2009-10-05 09:42:35 -05:00
Joshua Peek
635aa91224
More robust console test
2009-10-05 09:41:08 -05:00
Emilio Tagua
9a71b6d29d
Merge commit 'rails/master'
2009-10-05 11:30:18 -03:00
Joshua Peek
76d823677f
Revert "Revert "Fix Dispatch.new so passenger works" as it broke the build"
...
This reverts commit 49b52cadc2 .
2009-10-05 09:17:51 -05:00
Michael Koziarski
49b52cadc2
Revert "Fix Dispatch.new so passenger works" as it broke the build
...
This reverts commit c97c31b096 .
2009-10-05 17:23:37 +13:00
Joshua Peek
c97c31b096
Fix Dispatch.new so passenger works
2009-10-04 12:45:53 -05:00
Joshua Peek
86d0590022
Only draw default route once
2009-10-03 23:55:35 -05:00
Joshua Peek
86ed58d912
Use with_routing helper in tests instead of modifying global route set
2009-10-03 23:31:38 -05:00
Joshua Peek
61411f2aeb
Redraw default routes on all internal integration tests. We don't need SimpleRouteCase anymore
2009-10-03 23:18:32 -05:00
Joshua Peek
8287a112c9
Avoid creating new controller constants during test runtime. All routable controllers should be defined beforehand.
2009-10-03 23:03:08 -05:00
Joshua Peek
2a938ad5e7
Run AP isolated tests on CI
2009-10-03 22:14:58 -05:00
Joshua Peek
f5cba5e6b1
Moved shared form helper models into fake_models
2009-10-03 22:14:50 -05:00
Joshua Peek
31319b471b
NumberHelper depends on big decimal extensions
2009-10-03 22:06:25 -05:00
Joshua Peek
7eaed071a2
Changing directories during the test breaks file loading when ran by itself
2009-10-03 22:02:51 -05:00
Joshua Peek
660eb068d3
Don't load rubygems for isolated tests
2009-10-03 21:51:34 -05:00
Joshua Peek
75a2f00c97
Move improved isolated test runner to AP
2009-10-03 21:33:06 -05:00
Joshua Peek
018b79dd36
File extra test folders into controller, dispatch, or template
2009-10-03 21:05:51 -05:00
Joshua Peek
84e94551f6
Add custom "with_routing" to internal tests to fix reseting session after using
...
with_routing. This only affects our internal AP tests.
2009-10-03 20:45:49 -05:00
Emilio Tagua
61c959ab0d
Merge commit 'rails/master'
2009-10-03 18:23:06 -03:00
Joshua Peek
89630a7c2c
Cleanup whitespace introduced in 8377646 and f4f6888
2009-10-02 10:19:30 -05:00
Taryn East
8377646d68
add indifferent access to the attributes
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-10-02 10:13:40 -05:00
Taryn East
f4f68885ef
update_attribute(s) added to Active Resource
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-10-02 10:13:01 -05:00
Emilio Tagua
29457a21c0
Merge commit 'rails/master'
2009-10-02 10:52:55 -03:00
Carl Lerche
420004e030
Initialize a new instance of Rails.application during integration tests
...
This is to fix the AWDWR tests until the application object is refactored to be a singleton.
2009-09-30 12:39:26 -07:00
Carl Lerche
2370e87ae0
Remove all calls to Rails::Initializer from boot.rb
...
This is starting a refactor of the rails initialization process. The boot.rb file will not remain the same.
2009-09-30 12:05:34 -07:00
Carl Lerche
34aae6d739
Remove a duplicate initializer
2009-09-29 17:46:33 -07:00
Carl Lerche
c9d4529c9d
Change Rails::Application to a class that is inherited from.
...
This is still very experimental.
2009-09-29 17:33:17 -07:00
Carl Lerche
d1a63b15e3
Remove unneeded files from the railties test directory
2009-09-29 16:12:45 -07:00
Carl Lerche
6b086449be
Fix the broken railties isolation tests
2009-09-29 16:07:29 -07:00
Yehuda Katz + Carl Lerche
6f6a589d4b
Create the application object from config/environment.rb
...
This is preliminary and not necessarily reflective of the
full plan.
2009-09-28 18:00:26 -07:00
Erik Ostrom
8ffc2e3b8d
Ported the new ActionView::TestCase from 2-3-stable to master [ #3260
...
state:resolved]
The test case now mimicks the template environment more closely, so it's
possible to use render, load helper dependencies.
This also fixes assert_select, and similar assertions. Because view tests
and helpers generally don't render full templates assert_select looks
first in rendered and then in output_buffer to find the rendered output.
Additional `master'-only changes: Made the Action Pack Rakefile run the
ActionView::TestCase tests, and made ActionView::Rendering#_render_text
always return a string.
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-09-28 13:31:30 -05:00
Mike Gunderloy
1696039f29
Remove SQLite2 from CI setup
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-09-28 14:51:40 +13:00
Luciano G Panaro
4168f87623
Make has_one with :conditions hash scope build or creation of the associated object with those conditions
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#3088 state:committed]
2009-09-28 14:50:33 +13:00
Jay Pignata
d48ebeade2
Escaping symbol passed into Memoizable's flush_cache for query methods to allow them to be cleared
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#3138 state:committed]
2009-09-28 14:48:13 +13:00
John Trupiano
e01f99786a
Allow PKG_NAME env variable to control the directory name used when 'rake dev' is used to generate a new rails app.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#3278 state:committed]
2009-09-28 14:41:17 +13:00