aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/dup_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix `CustomCops/AssertNot` to allow it to have failure messageRyuta Kamizono2018-05-131-3/+3
| | | | Follow up of #32605.
* Replace `assert !` with `assert_not`Daniel Colson2018-04-191-1/+1
| | | | | This autocorrects the violations after adding a custom cop in 3305c78dcd.
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-5/+5
|
* Clear the transaction state when AR object is dupedYuriy Ustushenko2018-01-251-0/+16
|
* Enable `Layout/LeadingCommentSpace` to not allow cosmetic changes in the futureRyuta Kamizono2017-12-141-3/+3
| | | | Follow up of #31432.
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Raise NotImplementedError when using empty_insert_statement_value with OracleKoichi ITO2017-02-171-0/+2
| | | | Refer: https://github.com/rsim/oracle-enhanced/pull/1180
* modernizes hash syntax in activerecordXavier Noria2016-08-061-2/+2
|
* applies new string literal convention in activerecord/testXavier Noria2016-08-061-16/+16
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Don't error when `dup`ing a record with no PKSean Griffin2014-07-021-0/+12
|
* Add missing require to fix test :bomb:Carlos Antonio da Silva2014-05-021-0/+1
|
* Move dup destroyed test to specific file that tests dup logicCarlos Antonio da Silva2014-05-021-0/+8
| | | | | Also change other related test to use existing record rather than creating new one.
* Don't need to check if the scope respond to callRafael Mendonça França + Kassio Borges2013-08-311-1/+1
| | | | | We are checking this when defining the default scope and raising an ArgumentError
* Fix typo: overriden => overriDDenAlexander Balashov2013-03-281-1/+1
|
* fix typos in AR. lots of them.Vipul A M2013-03-191-1/+1
|
* Do not override attributes on `dup` by default scopesHiroshige Umino2013-02-261-0/+9
|
* Missing repair_validationsAkira Matsuda2013-01-221-12/+14
|
* Call super to nullify the reference to the original errors object in the ↵Christian Seiler2012-10-161-0/+14
| | | | dup'ed object (call ActiveModel::Validations#initialize_dup). Closes #7291
* Remove mass_assignment_options from ActiveRecordGuillermo Iguaran2012-09-161-1/+1
|
* Fixed after_initialize callbacks call on AR model #dupBogdan Gusiev2012-01-071-0/+8
|
* please use ruby -I lib:test path/to/test.rb, or export RUBY_OPTAaron Patterson2011-06-061-1/+1
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-041-1/+1
| | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
* Testing that dup is resetting the timestampsFranck Verrot2010-11-251-0/+24
|
* fixing variable names. oops!Aaron Patterson2010-11-231-2/+2
|
* clone and dup are working on 1.8Aaron Patterson2010-11-231-0/+15
|
* fixing dup regressionsAaron Patterson2010-11-231-3/+6
|
* renaming duplication test to dup testAaron Patterson2010-11-231-0/+61