Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | do order by id when finding first fixture to ensure that it is correct one | Raimonds Simanovskis | 2010-06-04 | 1 | -1/+1 | |
| | | | | | | | | | | | | (as otherwise was failing under JRuby and oracle_enhanced adapter) | |||||
| * | | Oracle enhanced adapter now supports shortening of default generated index ↵ | Raimonds Simanovskis | 2010-06-04 | 1 | -12/+10 | |
| | | | | | | | | | | | | names, some additional tests now pass | |||||
| * | | Reduced size of table name prefix and suffix in migrations test as in Oracle ↵ | Raimonds Simanovskis | 2010-06-04 | 1 | -3/+4 | |
| | | | | | | | | | | | | identifier name cannot be larger than 30 characters | |||||
| * | | Explicitly set Topic model last_read attribute as Date value when Oracle ↵ | Raimonds Simanovskis | 2010-06-04 | 2 | -3/+10 | |
| | | | | | | | | | | | | | | | | | | enhanced adapter is used (otherwise some tests are failing which assume that this attribute will have Date value) | |||||
| * | | create DateTime value with local offset as later it is compared to Time ↵ | Raimonds Simanovskis | 2010-06-04 | 1 | -1/+3 | |
| | | | | | | | | | | | | | | | | | | value with local offset (otherwise test is failing for oracle_enhanced JDBC adapter) | |||||
* | | | This test shouldn't rely on the order of the data returned by select | Santiago Pastorino | 2010-06-07 | 1 | -1/+1 | |
| | | | | | | | | | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | | | Really make include_root_in_json default to true [#3770 state:resolved] | José Valim | 2010-06-08 | 1 | -11/+8 | |
| |/ |/| | ||||||
* | | Make the logic for nested_records_changed_for_autosave? simpler. | José Valim | 2010-06-07 | 1 | -9/+5 | |
| | | | | | | | | [#4648 state:resolved] | |||||
* | | Fixing test class names and refactor line in autosave association | Carlos Antonio da Silva | 2010-06-07 | 3 | -7/+7 | |
| | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | | Require active support/string/conversions so constantize can be used in ↵ | Tom Meier | 2010-06-07 | 1 | -0/+1 | |
| | | | | | | | | | | | | associations.rb Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | | MySQL: require 2.7 or later so we can rely on result.each_hash | Jeremy Kemper | 2010-06-05 | 1 | -49/+8 | |
| | | ||||||
* | | Whoops. _run_*_callbacks is private | wycats | 2010-06-04 | 1 | -1/+1 | |
| | | ||||||
* | | Use faster form of running callbacks | wycats | 2010-06-04 | 1 | -1/+1 | |
| | | ||||||
* | | removes Array#random_element and backports Array#sample from Ruby 1.9, ↵ | Xavier Noria | 2010-06-05 | 2 | -8/+8 | |
|/ | | | | thanks to Marc-Andre Lafortune | |||||
* | Properly cache association_collection#scopes calls having arguments | Pratik Naik | 2010-06-04 | 3 | -1/+16 | |
| | ||||||
* | Special treatement for Relation#select { with block } | Pratik Naik | 2010-06-02 | 2 | -1/+19 | |
| | ||||||
* | Configure generators before invoking. | José Valim | 2010-06-02 | 1 | -0/+1 | |
| | ||||||
* | Unforce tzinfo from AS | Santiago Pastorino | 2010-06-01 | 1 | -0/+1 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Merge commit 'mislav/counter_cache' | Michael Koziarski | 2010-05-29 | 3 | -63/+95 | |
|\ | ||||||
| * | fix `reset_counters` to work even with complex class names | Mislav Marohnić | 2010-05-24 | 2 | -4/+31 | |
| | | | | | | | | | | | | e.g. it guesses that a belongs_to association to Namespace::MyModel is named "my_model", unlike before where it would look up an association named "namespace::mymodel" and fail. | |||||
| * | move counter_cache tests to a separate file and refactor | Mislav Marohnić | 2010-05-24 | 2 | -49/+58 | |
| | | ||||||
| * | cleanup `update/reset_counters`: less SQL strings, more ActiveRecord/Arel | Mislav Marohnić | 2010-05-24 | 1 | -12/+8 | |
| | | ||||||
* | | Refactor calculation test to remove unneeded SQLite special case. | Santiago Pastorino | 2010-05-24 | 1 | -4/+1 | |
|/ | | | | | | [#4633] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Fix failing test. | José Valim | 2010-05-21 | 2 | -9/+9 | |
| | ||||||
* | Replace assert with assert_equal in some test cases | Neeraj Singh | 2010-05-21 | 1 | -2/+2 | |
| | | | | | | [#4654 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | refactor evals and adds some __FILE__ and __LINE__ | Santiago Pastorino | 2010-05-20 | 3 | -4/+4 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Merge remote branch 'rails/master' | Xavier Noria | 2010-05-19 | 42 | -214/+466 | |
|\ | ||||||
| * | Final iteration of use better testing methods | Neeraj Singh | 2010-05-19 | 9 | -25/+25 | |
| | | | | | | | | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | Fixes a test on transaction_callbacks_test.rb | Santiago Pastorino | 2010-05-19 | 1 | -2/+2 | |
| | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | Use better assertion methods for testing | Neeraj Singh | 2010-05-19 | 16 | -89/+82 | |
| | | | | | | | | | | | | [#4645 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | Revert "Don't carry default value when changing column for a binary type on ↵ | Jeremy Kemper | 2010-05-18 | 2 | -17/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | MySQL" Broke mysql tests. This reverts commit edec1afe25014749f0e2df86d27477b45586a9e3. Conflicts: activerecord/test/cases/migration_test.rb [#3234 state:open] | |||||
| * | make add_index and remove_index more resilient; new rename_index method; ↵ | Étienne Barrié | 2010-05-18 | 8 | -13/+147 | |
| | | | | | | | | | | | | | | | | track database limits [#3452 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
| * | Fixes transaction callbacks tests | Santiago Pastorino | 2010-05-18 | 1 | -23/+19 | |
| | | | | | | | | | | | | [#4640 state:committed] Signed-off-by: wycats <wycats@gmail.com> | |||||
| * | Nested records (re: autosave) are now updated even when the intermediate ↵ | Ian White | 2010-05-18 | 4 | -2/+106 | |
| | | | | | | | | | | | | parent record is unchanged [#4242 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | assert_equal should be used instead of assert | Neeraj Singh | 2010-05-18 | 1 | -1/+1 | |
| | | | | | | | | | | | | [#4629 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | expected value should come first in assert_equal | Neeraj Singh | 2010-05-18 | 1 | -3/+3 | |
| | | | | | | | | | | | | [#4630 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | Remove Model.clear_default_scope | Pratik Naik | 2010-05-18 | 2 | -16/+0 | |
| | | ||||||
| * | Cut the fat and make session stores rely on request.cookie_jar and change ↵ | José Valim | 2010-05-18 | 1 | -1/+1 | |
| | | | | | | | | set_session semantics to return the cookie value instead of a boolean. | |||||
| * | Use assert_equal correctly in transaction callback tests (exposing some of ↵ | Paco Guzman | 2010-05-17 | 1 | -17/+17 | |
| | | | | | | | | | | | | | | | | them as broken) [#4612] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
| * | AR::Base#clone fixed to set dirty bits for cloned object | pleax | 2010-05-16 | 2 | -1/+57 | |
| | | | | | | | | | | | | [#2919 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
| * | cache connection when quoting | Comron Sattari | 2010-05-16 | 1 | -5/+6 | |
| | | | | | | | | | | | | | | [#3642 state:committed] Signed-off-by: Marius Nuennerich <marius@nuenneri.ch> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | | Merge branch 'master' of git://github.com/rails/rails | Rizwan Reza | 2010-05-17 | 34 | -110/+285 | |
|\| | ||||||
| * | a cloned object no longer mimics changed flags from creator , plus a test ↵ | Federico Brubacher | 2010-05-16 | 2 | -0/+10 | |
| | | | | | | | | | | | | case [#4614 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | Change on Array extension from rand => random_element [#4555 state:committed] | Santiago Pastorino | 2010-05-16 | 2 | -8/+8 | |
| | | | | | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | |||||
| * | prevent to run fixture accessor (e.g. test_foos for TestFoo model) as a test ↵ | Nobuhiro IMAI | 2010-05-16 | 2 | -0/+6 | |
| | | | | | | | | | | | | | | case [#2992 state:resolved] Signed-off-by: Wijnand Wiersma <wijnand@videre.net> Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | Make use of assert_equal to test equallity between object assert expects and ↵ | Santiago Pastorino | 2010-05-16 | 3 | -5/+5 | |
| | | | | | | | | | | | | | | | | object and a message of error [#4611 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | Postgresql doesn't allow to change a string type column to a binary type. ↵ | Wijnand Wiersma | 2010-05-16 | 1 | -7/+9 | |
| | | | | | | | | | | | | Skip this test for postgresql for now. [#4616 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | Don't carry default value when changing column for a binary type on MySQL ↵ | Elomar França | 2010-05-16 | 2 | -1/+15 | |
| | | | | | | | | | | | | [#3234 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | Revert "Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an ↵ | José Valim | 2010-05-15 | 4 | -12/+12 | |
| | | | | | | | | | | | | | | | | options hash and make various Validators pass their (filtered) options." Having a huge array to whitelist options is not the proper way to handle this case. This means that the ActiveModel::Errors object should know about the options given in *all* validators and break the extensibility added by the validators itself. If the intent is to whitelist options before sending them to I18n, each validator should clean its respective options instead of throwing the responsibility to the Errors object. This reverts commit bc1c8d58ec45593acba614d1d0fecb49adef08ff. | |||||
| * | Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an options ↵ | Jeroen van Dijk | 2010-05-15 | 4 | -12/+12 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hash and make various Validators pass their (filtered) options. This makes it possible to pass additional options through Validators to message generation. E.g. plugin authors want to add validates_presence_of :foo, :format => "some format". Also, cleanup the :default vs :message options confusion in ActiveModel validation message generation. Also, deprecate ActiveModel::Errors#add_on_blank(attributes, custom_message) in favor of ActiveModel::Errors#add_on_blank(attributes, options). Original patch by Sven Fuchs, some minor changes and has been changed to be applicable to master again [#4057 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> |