aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/fixtures.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make use of redefine_method, removed some more redefining warningsŁukasz Strzałkowski2010-07-191-1/+1
|
* primary_key_name already checks for the model_classAaron Patterson2010-07-141-2/+2
|
* use array intersection for dry / faster codeAaron Patterson2010-07-141-3/+2
|
* Clarify Fixture#key_ and value_listJeremy Kemper2010-06-081-7/+5
|
* prevent to run fixture accessor (e.g. test_foos for TestFoo model) as a test ↵Nobuhiro IMAI2010-05-161-0/+1
| | | | | | | case [#2992 state:resolved] Signed-off-by: Wijnand Wiersma <wijnand@videre.net> Signed-off-by: José Valim <jose.valim@gmail.com>
* AR: fixed postgres fixture tests [#4519 state:resolved]Cezary Baginski2010-05-011-1/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Support fixtures for namespaced models [#2965 state:resolved]Andrew White2010-04-251-4/+5
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Use Array.wrap to quiet 1.8.8 deprecationJeremy Kemper2010-04-241-3/+4
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+1
|
* Merge remote branch 'mainstream/master'Pratik Naik2010-01-171-4/+3
|\ | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/flash.rb
| * reduce max size of fixture IDs to fix sqlite2 tests, because sqlite2 was ↵Chad Woolley2010-01-121-1/+1
| | | | | | | | | | | | getting negative and changing values for ID field. See http://www.sqlite.org/datatypes.html Signed-off-by: Yehuda Katz <wycats@gmail.com>
| * Use better defaults for fixtures: transactional=true, instantiated=falseJeffrey Hardy2010-01-061-2/+2
| | | | | | | | | | These reflect the settings that were previously included in the default test_helper.rb, removed in d7d9173.
| * Autoload AS test caseJoshua Peek2010-01-041-1/+0
| |
* | revises an example in docs about habtm & fixturesXavier Noria2009-12-031-2/+1
|/
* Don't use AR::Base.connection for fixture column quoting. Use the connection ↵Jeffrey Hardy2009-08-261-7/+9
| | | | | | | | given to Fixtures.new [#3104 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge docrailsPratik Naik2009-07-251-1/+1
|
* Break up DependencyModule's dual function of providing a "depend_on" DSL and ↵Joshua Peek2009-05-281-1/+1
| | | | "included" block DSL into separate modules. But, unify both approaches under AS::Concern.
* Reimplement Fixtures.identify so that it consistently generates identities ↵Ken Collins2009-05-181-4/+5
| | | | | | | | across ruby versions. [#2633 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Cherry-pick core extensionsJeremy Kemper2009-05-131-0/+1
|
* Use DependencyModule for included hooks in ActiveRecordBryan Helmkamp2009-05-111-20/+18
|
* Merge with docrailsPratik Naik2009-02-241-57/+46
|
* Introduce transaction_joinable flag to mark that the fixtures transaction ↵Jeremy Kemper2009-01-101-3/+2
| | | | | | can't joined, a new savepoint is required even if :requires_new is not set. Use :requires_new option instead of :nest. Update changelog. [#383 state:committed]
* Merge commit 'origin/master' into savepointsHongli Lai (Phusion)2008-12-031-142/+147
|\ | | | | | | | | | | Conflicts: activerecord/lib/active_record/fixtures.rb activerecord/test/cases/defaults_test.rb
| * Rename use_transactional_fixtures? so it doesn't collide with the ↵Jeremy Kemper2008-11-251-4/+4
| | | | | | | | superclass_delegating_accessor's query method
| * fixtures depends on dependenciesJoshua Peek2008-11-241-0/+1
| |
| * Ensure @@already_loaded_fixtures is initialized before usePratik Naik2008-11-161-1/+1
| |
| * lazy-initialize already loaded fixtures mapJeremy Kemper2008-11-081-1/+1
| |
| * Remove fixtures from Test::Unit::TestCase. Mix in AR::TestFixtures instead.Jeremy Kemper2008-11-071-140/+144
| |
* | Implement savepoints.Jonathan Viney2008-11-031-0/+2
|/
* Remove CachedConnectionPerThread per-thread pooling mechanism in favor of a ↵Nick Sieger2008-08-291-1/+1
| | | | fixed pool with default maximum of 5 connections
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Move the transaction counter to the connection object rather than ↵Jonathan Viney2008-07-151-4/+4
| | | | | | | maintaining it on the current Thread. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#533 state:resolved]
* Make fixture accessors work when fixture name is not same as the table name. ↵Rhett Sutphin2008-07-141-3/+4
| | | | | | [#124 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Don't append limit to primary key column definition. Freeze some constants.Jeremy Kemper2008-06-081-1/+1
|
* Merge docrails.Pratik Naik2008-05-251-24/+25
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Prefer string core_ext inflector methods over directly accessing Inflector.Joshua Peek2008-05-141-7/+7
|
* Merge docrails:Pratik Naik2008-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit e6afd8b2736364322b673bbdcca3e9b38b6d3da0 Author: Xavier Noria <fxn@hashref.com> Date: Thu May 8 23:49:36 2008 +0200 Overall documentation improvement and markup corrections. Zillion changes. commit 2fead68b3192332eee27945ed95a94a64ca73f70 Author: Austin Putman <austin@emmanuel.local> Date: Wed May 7 19:35:46 2008 -0700 Documented class methods on ActionController::Routing. These are dangerous, and mostly used for testing. commit f5b84182dbc39bea79c8ee319c688d00fa99f9d1 Author: Teflon Ted <github@rudiment.net> Date: Wed May 7 16:08:49 2008 -0400 Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications. commit 370f4f51722cec49ace17093d29e9ce9e8f15cfb Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 14:00:59 2008 +0200 Applied list conventions in AR::Base commit 5bd18429f09d44e75191bec42a6db04bd33f3030 Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 13:53:35 2008 +0200 Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base commit d912bd5672316454457ae83f6e9dda5197beeb6f Author: Yaroslav Markin <yaroslav@markin.net> Date: Wed May 7 13:50:28 2008 +0400 Add a filter_parameter_logging usage hint to generated ApplicationController. This may help to remind the developer to filter sensitive information from application logs. Closes #11578 commit b243de0db3c2605121e055079854af5090d06374 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:39:47 2008 -0700 doc: disambiguating an example ActiveRecord class commit f81d771f0657ae8375b84a77a059812cce5d6fd9 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:35:05 2008 -0700 doc: ActiveRecord::Reflection::AssociationReflection#through_reflection Added documentation demonstrating the use of #through_reflection for finding intervening reflection objects for HasManyThrough and HasOneThrough. commit ae6b46f00b5b8b2939c6b37ce3329c83de7e71db Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:47:41 2008 +0800 Document AttributeAssignmentError and MultiparameterAssignmentErrors. commit 8f463550b597db2156b67733f31aed13487fbc3a Author: John Barnette <jbarnette@gmail.com> Date: Tue May 6 22:46:44 2008 -0700 Killing/fixing a bunch of outdated language in the AR README. commit aca44bcd92ef783abdf484b58abdde6786db0f89 Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:34:52 2008 +0800 Make a note about ActiveResource::Timeouterror being raised when ARes calls timeout. commit 284a930a93fbee16e25d06392779dbf2f03e9e12 Author: Jonathan Dance <jd@wuputah.com> Date: Tue May 6 14:58:26 2008 -0400 improvements to the page caching docs commit 9482da621390c874da7c921c8bd6230caae7035a Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 18:13:40 2008 +0200 validates_numericality_of() "integer" option really is "only_integer" commit e9afd6790a8f530528f6597a7f59bb283be754f6 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:11:59 2008 +0200 Harmonized hash notation in AR::Base commit 67ebf14a91ffd970b582be4ff2991d691a9cf3e1 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:06:19 2008 +0200 Turned options into rdoc-lists in AR::Base commit 0ec7c0a41d889d4e5382b9dff72f1aaba89bf297 Author: Marshall Huss <mwhuss@Macbook.local> Date: Sun May 4 23:21:33 2008 -0400 Added information of how to set element_name in the case the user has a name confliction with an existing model Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed fixture caching with prefixed or suffixed tables.Rhett Sutphin2008-04-301-3/+3
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Ruby 1.9 compat: delete DEFAULTS key from Hash not Omap arrayJeremy Kemper2008-04-011-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve documentation.Pratik Naik2008-03-261-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only log if theres a loggerDavid Heinemeier Hansson2008-03-171-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9051 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added logging for dependency load errors with fixtures (closes #11056) ↵David Heinemeier Hansson2008-03-171-5/+11
| | | | | | [stuthulhu] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixtures: removed support for the ancient pre-YAML file format. Closes #10736.Jeremy Kemper2008-01-081-36/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8594 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Continue evolution toward ActiveSupport::TestCase and friends. #10679 ↵Jeremy Kemper2008-01-051-82/+67
| | | | | | | | | [Josh Peek] * TestCase: introduce declared setup and teardown callbacks. Pass a list of methods and an optional block to call before setup or after teardown. Setup callbacks are run in the order declared; teardown callbacks are run in reverse. [Jeremy Kemper] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prefer to instantiate fixtures with model classes instead of their names, ↵Jeremy Kemper2008-01-051-13/+14
| | | | | | avoiding excess constant lookups. Closes #10677 [nwilmes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8561 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cache fixture model class. References #10677 [nwilmes]Jeremy Kemper2008-01-051-2/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8560 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9: Forwards compatibility change for fixtures and the new CSV module ↵Michael Koziarski2008-01-031-1/+1
| | | | | | [JEG2] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: fix two failing tests since String#each has been removed. ↵Jeremy Kemper2008-01-021-1/+3
| | | | | | Closes #10655. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: Fixtures inherits Hash instead of YAML::Omap since it's now ↵Jeremy Kemper2007-12-221-2/+2
| | | | | | insertion-ordered. Work around a &:procname crash. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8480 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert [8392]. Closes #10568, reopens #10379.Jeremy Kemper2007-12-191-13/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de