aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add active_support/testing/autorunRafael Mendonça França2012-12-311-2/+1
| | | | | minitest/autorun load minitest/spec polluting the global namespace with the DSL that we don't want on Rails
* Revert "Fix annoy warning, when executing testcase."Andrey Deryabin2012-11-301-2/+0
| | | | | | This reverts commit a3024f81228d7b3b446408114a5dc2a86870cd35. REASON: Since warning doesn't exist
* Fix typo in module name and make #in_time_zone privateCarlos Antonio da Silva2012-11-171-1/+3
|
* Extract #in_time_zone helper method duplication to a moduleCarlos Antonio da Silva2012-11-171-0/+13
|
* Rename "Fixtures" class to "FixtureSet"Alexey Muranov2012-10-071-1/+1
| | | | Rename `ActiveRecord::Fixtures` class to `ActiveRecord::FixtureSet`. Instances of this class normally hold a collection of fixtures (records) loaded either from a single YAML file, or from a file and a folder with the same name. This change make the class name singular and makes the class easier to distinguish from the modules like `ActiveRecord::TestFixtures`, which operates on multiple fixture sets, or `DelegatingFixtures`, `::Fixtures`, etc., and from the class `ActiveRecord::Fixture`, which corresponds to a single fixture.
* Fix annoy warning, when executing testcase.kennyj2012-09-111-0/+2
|
* Remove the dependent_restrict_raises option.Jon Leighton2012-08-101-3/+0
| | | | | | | | | | | | | | | It's not really a good idea to have this as a global config option. We should allow people to specify the behaviour per association. There will now be two new values: * :dependent => :restrict_with_exception implements the current behaviour of :restrict. :restrict itself is deprecated in favour of :restrict_with_exception. * :dependent => :restrict_with_error implements the new behaviour - it adds an error to the owner if there are dependent records present See #4727 for the original discussion of this.
* load active_support/deprecation in active_support/railsXavier Noria2012-08-021-1/+1
|
* remove duplicate requires of mocha.Aaron Patterson2012-07-031-1/+0
| | | | | Mocha is already required by AS::TestCase, so remove the duplicate requires.
* Fix logs name consistency.kennyj2012-05-191-0/+16
|
* port some mocha to minitest/mockAaron Patterson2012-05-181-0/+1
|
* Rename some variablesAlexey Muranov2012-05-091-2/+2
| | | | | | Rename some parameters and instance and local variables, mostly in fixtures.rb. Also remove an unused assignment to an instance variable. There are minor code changes.
* fix tests for SQLite3AdapterAndrey Deryabin2012-04-271-1/+1
|
* Remove IdentityMapCarlos Antonio da Silva2012-03-131-3/+0
|
* Get ActiveRecord::TestCase back on its feet, despite deprecation. It ↵Jeremy Kemper2012-02-051-31/+0
| | | | requires SQLCounter which was moved to AR internal tests only.
* fix a typo [ci skip]Vijay Dev2012-02-011-1/+1
|
* Remove deprecation warnings from testsRafael Mendonça França2012-01-311-0/+3
|
* Moving AR::TestCase in to the AR tests directoryAaron Patterson2012-01-241-1/+1
|
* require test/unit and sort test orderAaron Patterson2012-01-061-1/+1
|
* Revert "Regexp.union seems to have different results in 1.8"Carlos Antonio da Silva2012-01-061-3/+3
| | | | | | This reverts commit d80e4ee20e690dfc0f4ec31c41b873d607462872. No need to care about 1.8 anymore, so reverting :)
* do not require a file that is not usedAaron Patterson2012-01-051-0/+1
|
* remove more uses of deprecated logger methodsAaron Patterson2011-12-191-1/+5
|
* Regexp.union seems to have different results in 1.8Aaron Patterson2011-12-081-3/+3
|
* moving ignored regexp to the instanceAaron Patterson2011-12-071-6/+8
|
* speeding up ignored sql testingAaron Patterson2011-12-071-1/+4
|
* If we're going to use a global variable, let's at least namespace itJon Leighton2011-06-121-4/+4
|
* Refactor tests to be less brittleJon Leighton2011-06-121-3/+4
|
* Move BEGIN and COMMIT into IGNORED_SQL rather than having them as a special ↵Jon Leighton2011-06-121-1/+1
| | | | case in assert_queries
* Print out information about whether the identity map is on or off when ↵Jon Leighton2011-06-091-5/+6
| | | | running unit tests
* do not muck with the load path, that is the test task responsibilityAaron Patterson2011-06-061-6/+0
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-041-8/+10
| | | | 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.
* Disable IdentityMap by default for ActiveRecord testingAkira Matsuda2011-05-281-2/+2
| | | | because enabling IM by default will possibly hide some bugs on 3.1 default behavior
* Namespace Fixtures in ActiveRecordJason Noble2011-05-071-1/+1
| | | [Fixes #439]
* Run tests without IdentityMap when IM=false is given.Emilio Tagua2011-02-151-1/+1
|
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-151-35/+34
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * refactor fixtures to do less work in the constructorAaron Patterson2011-02-111-1/+1
| |
| * ignore max identifier length queries from pgAaron Patterson2011-02-081-1/+1
| |
| * we do not use this method, so deleteAaron Patterson2011-02-071-12/+0
| |
| * update ignored SQL for oracleAaron Patterson2011-02-071-1/+1
| |
| * removing some freedom patches. use notification system to count sql queriesAaron Patterson2011-02-071-17/+18
| |
| * adjust query counts to be consistent across databases, make sure database ↵Aaron Patterson2011-02-041-1/+1
| | | | | | | | log the same things
| * In a number of places in the tests, we only need to turn off transactional ↵Jon Leighton2011-01-111-0/+4
| | | | | | | | fixtures when the DB does not support savepoints. This speeds the test run up by about 8-9% on my computer, when running rake test_sqlite3_mem :)
| * Enable the sqlite3 in-memory test connection to workJon Leighton2011-01-111-5/+11
| |
* | Merge remote branch 'rails/master' into identity_mapEmilio Tagua2010-12-201-5/+0
|\| | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/persistence.rb
| * do not require ruby-debug automatically. please require it if you have ↵Aaron Patterson2010-11-191-5/+0
| | | | | | | | declared it as a dependency
* | Set Identity Map disabled by default. Enable it for testing.Emilio Tagua2010-11-191-0/+3
| |
* | IdentityMap - misc fixesMarcin Raczkowski2010-11-191-1/+8
|/ | | | | | - Added IdentityMap to be included into AR::Base - Fixed bug with Mysql namespace missing when running tests only for sqlite - Added sqlite as default connection
* converted exec to exec_query for sqliteAaron Patterson2010-11-051-3/+3
|
* ignoring certain SQL when using OracleAaron Patterson2010-11-031-0/+4
|
* exec returns an AR::ResultAaron Patterson2010-10-261-0/+8
|