Alexey Nayden
fa779c5357
Fixing incorrectly writtent testcase
2011-01-28 15:06:02 -08:00
Alexey Nayden
e92c2ffd8e
Nested attributes and in-memory changed values #first and #[] behaviour consistency fix
2011-01-28 15:06:01 -08:00
Alexey Nayden
2884482c34
test_first_and_array_index_zero_methods_return_the_same_value_when_nested_attributes_are_set_to_update_existing_record added
2011-01-28 15:06:01 -08:00
Aaron Patterson
c87fb22a06
make sure we play nicely when syck is activated
2011-01-28 15:00:52 -08:00
brainopia
eb33bd944d
Psych correctly gets visitor for SafeBuffer from superclass
2011-01-28 14:32:53 -08:00
brainopia
452dba72f5
Remove unneeded yaml_as declaration
2011-01-28 14:31:36 -08:00
Aaron Patterson
c29eef7da7
load psych by default if possible
2011-01-28 14:24:11 -08:00
Santiago Pastorino
e19a7729d1
Bump mail version up
2011-01-28 17:45:11 -02:00
Neeraj Singh
806e6f80dc
render_to_string must ensure that response_body
...
is nil
[ #5875 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-25 20:14:03 +01:00
Neeraj Singh
c1145d9281
If I want to set respond_body to nil then it
...
should be nil and not [nil]. If anything other
than nil then wrap it in array
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-25 20:13:56 +01:00
Doug Fales
7927fc2ff7
A patch so that http status codes are still included in logs even during an exception [ #6333 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-25 20:12:22 +01:00
Aaron Patterson
59f3218463
load and prefer psych as the YAML parser when it is available
2011-01-21 17:53:28 -08:00
Aaron Patterson
3d6e223b84
use spec compliant YAML
2011-01-21 15:43:34 -08:00
Aaron Patterson
b5cc277763
psych does not emit a space after the tag
2011-01-21 15:13:30 -08:00
Aaron Patterson
370bcd1a01
use ! " " YAML string literal syntax rather than removing both quotes
2011-01-21 14:09:59 -08:00
Aaron Patterson
7642b7531d
prefering psych as the yaml parser if possible, fixing assertions for YAML 1.1 compatibility
2011-01-21 11:16:40 -08:00
Aaron Patterson
2570c85cb7
fixing psych support in big decimal, fixing tests to support YAML 1.1
2011-01-21 11:16:40 -08:00
brainopia
8491f16e12
Add tld_length option when using domain :all in cookies
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-21 13:13:51 +01:00
brainopia
91a4193ee0
Support list of possible domains for cookies
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-21 13:13:43 +01:00
Xavier Noria
02319b7982
Merge branch 'master' of github.com:rails/rails
2011-01-20 10:34:17 +01:00
Xavier Noria
236f1f52cd
Merge branch 'master' of git://github.com/lifo/docrails
2011-01-20 10:33:38 +01:00
Jamis Buck
bc9b1075ae
Revert "make TestCaseTest work for pre-1.9 rubies, too"
...
This reverts commit 7938039548c3269cefe1bc1368f726557793f771.
2011-01-19 15:55:32 -07:00
Jamis Buck
1de1dc02d7
Revert "scrub instance variables from test cases on teardown"
...
This reverts commit 79a06225ef0e148eb5da541711f74163b5efb18d.
2011-01-19 15:55:30 -07:00
Jamis Buck
41f76946d0
Revert "rein in GC during tests by making them run (at most) once per second"
...
This reverts commit 16a23a184e8b091392c0b6001a025bee8323ec8e.
2011-01-19 15:55:23 -07:00
José Valim
262b2ea8cd
Solve SystemStackError when changing locale inside ActionMailer [ #5329 state:resolved]
2011-01-19 23:42:10 +01:00
Frank Fischer
b247f39442
Added a testcase for bug [ #5329 ]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-19 23:24:57 +01:00
Tobias Bühlmann
94e0f1db1c
use name instead of title in example
2011-01-19 22:03:54 +01:00
Matt Buck
2373eedc88
Make all references to engines lowercase in docs.
2011-01-19 14:30:28 -06:00
Jamis Buck
16a23a184e
rein in GC during tests by making them run (at most) once per second
...
this can provide a significant performance boost during testing, by
preventing the GC from running too frequently.
2011-01-19 10:57:30 -07:00
Jamis Buck
79a06225ef
scrub instance variables from test cases on teardown
...
this prevents test state from accumulating, resulting in leaked
objects and slow tests due to overactive GC.
2011-01-19 10:57:23 -07:00
Jamis Buck
7938039548
make TestCaseTest work for pre-1.9 rubies, too
2011-01-19 10:57:16 -07:00
Aaron Patterson
a282301a77
we have a method for setting preloaded records, so use it
2011-01-18 16:33:18 -08:00
Aaron Patterson
c107849a99
reduce objects, reduce loops and function calls while building the conditional
2011-01-18 15:52:57 -08:00
Aaron Patterson
f3a5995bbf
keys will always be strings in the id => record map
2011-01-18 15:52:57 -08:00
Aaron Patterson
9e42f1b416
reduce method calls and loops when dealing with custom conditions
2011-01-18 15:52:57 -08:00
Aaron Patterson
ba62a87b8b
ony bother with record map keys when we need them
2011-01-18 15:52:57 -08:00
Aaron Patterson
4bc9bacd94
refactor elaborate group_by in to a normal group_by
2011-01-18 15:52:57 -08:00
Aaron Patterson
36d6678690
removing usesless variable assignments
2011-01-18 15:52:56 -08:00
Nick Sutterer
7091d800b8
fixed a missing require that causes trouble when using AS in a non-rails env.
2011-01-18 23:28:51 +01:00
Aaron Patterson
54de7048a5
Merge branch 'template_error' into merge
...
* template_error:
Ensure original exception message is present in both Template::Error#message and Template::Error#inspect.
ActiveSupport::Deprecation.silence no longer needed.
2011-01-18 10:52:37 -08:00
Aaron Patterson
e6881217ed
fixing bug where 1.8 hangs while running pg tests
2011-01-18 10:49:50 -08:00
Christos Trochalakis
7dab186fde
Issue one Cache#read command instead of two in the case of a fragment cache hit
2011-01-18 09:52:11 -08:00
Aaron Patterson
11fe2161ce
remove unnecessary module_eval
2011-01-18 09:36:33 -08:00
John Firebaugh
cc446eee99
Class.__subclasses__ was removed from Rubinius.
...
https://github.com/evanphx/rubinius/issues/issue/11
2fccbb5dad
2011-01-18 15:02:41 +08:00
Michael Koziarski
199d1abeb2
Use the derived request_method from AD::Request rather than the raw REQUEST_METHOD from rack.
...
This takes _method into account so the log shows the method which ActionController sees.
2011-01-18 14:43:54 +13:00
Mikel Lindsaar
6854358964
Removing unused method argument
2011-01-18 12:06:21 +11:00
Mikel Lindsaar
b141fa6280
Cleaning up style, concat inside method calls is ugly
2011-01-18 12:06:21 +11:00
Mikel Lindsaar
3b584aee95
Fixing redundant escape in regex
2011-01-18 12:06:21 +11:00
Mikel Lindsaar
ad8dc5ab89
Should use standard ruby signature for respond_to
2011-01-18 12:06:20 +11:00
Mikel Lindsaar
b72cd29e53
Fixing spelling
2011-01-18 12:06:20 +11:00