aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/fixtures_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* properly namespace the fixture exceptionAaron Patterson2012-03-221-1/+1
|
* Revert PR#5001 "removed unuseful require for reply as we are not using ↵Vishnu Atrai2012-02-121-0/+1
| | | | | | require model" This reverts commit 7381596ea32aff47222af89e4bc66000f4597acb.
* removed unuseful require for reply as we are not using require modelKarunakar (Ruby)2012-02-111-1/+0
|
* fix fixtures test as table_name is a string nowSergey Nartimov2012-01-261-2/+2
|
* create_fixtures should accept symbol keys for custom table -> class ↵Jeremy Kemper2012-01-031-2/+10
| | | | mappings. Fixes an unintended regression.
* setup_fixture_accessors should accept symbols for table names. Fixes an ↵Jeremy Kemper2012-01-031-1/+1
| | | | unintended (and untested) regression.
* Test case: fixture table name is defined in modelAlexey Muranov2011-12-301-0/+5
|
* Test fixtures with custom model and table namesAlexey Muranov2011-12-301-0/+28
| | | | | | Test using fixtures with random names and model names, that is not following naming conventions but using set_fixture_class instead. It is expected that the table name be defined in the model, but this is not explicitly tested here. This will need to be fixed.
* Fix a fixtures test case with table prefix/suffixAlexey Muranov2011-12-271-23/+37
| | | | Make sure the table name of a model is reset in a test case after assigning ActiveRecord::Base.table_name_prefix and ActiveRecord::Base.table_name_suffix.
* remove checks for encodings availabilitySergey Nartimov2011-12-251-1/+1
|
* Revert "Merge pull request #4114 from ↵Jon Leighton2011-12-221-36/+23
| | | | | | | | | alexeymuranov/my_fix_for_prefix_suffix_fixtures_test" This reverts commit f8e484d0f71114675ed04e987914d3f2815cb868, reversing changes made to fa5adfb1e884bf21a7071ade634a820e37ac4db4. Reason: broke the postgres tests.
* Fix a fixtures test case with table prefix/suffixAlexey Muranov2011-12-221-23/+36
| | | Make sure the table name of a model is reset in a test case after assigning ActiveRecord::Base.table_name_prefix and ActiveRecord::Base.table_name_suffix. This was somebody else's test case, so an independent opinion on the change can be helpful.
* Errno::ENOENT error makes more sense when a file cannot be foundAaron Patterson2011-12-101-1/+1
|
* Use broken YAML that will fail with Syck as well as Psych. Fixes ↵Jon Leighton2011-10-091-2/+2
| | | | | | test_broken_yaml_exception in fixtures_test.rb on Ruby 1.8.7. Cherry-pick from 3-1-stable: b8d46924e70e0847e92e1d2dbaaec8c11381072c
* Transactional fixtures enlist all active database connections.Jeremy Kemper2011-10-051-3/+27
| | | | You can use multiple databases in your tests without disabling transactional fixtures.
* * Psych errors with poor yaml formatting are proxied. Fixes #2645, #2731Aaron Patterson2011-09-011-0/+16
|
* Quote these dates to prevent intermittent test failure. Suppose local time ↵Jon Leighton2011-08-041-2/+2
| | | | is 00:50 GMT+1. Without the quoting, the YAML parser would parse this as 00:50 UTC, into the local time of 01:50 GMT+1. Then, it would get written into the database in local time as 01:50. When it came back out the UTC date from the database and the UTC date of two weeks ago would be compared. The former would be 23:50, and the latter would be 00:50, so the two dates would differ, causing the assertion to fail. Quoting it prevents the YAML parser from getting involved.
* Use Enumerable#with_index. We're on Ruby > 1.8.7 (part II)Akira Matsuda2011-07-081-3/+1
|
* Fix failing test because of Timezone difference.Anil Wadghule2011-06-051-2/+2
|
* removing CSV fixture supportAaron Patterson2011-05-231-6/+0
|
* deprecating CSV fixture supportAaron Patterson2011-05-101-1/+3
|
* Namespace Fixtures in ActiveRecordJason Noble2011-05-071-21/+21
| | | [Fixes #439]
* making sure the `create_fixtures` method works to prevent regressionsAaron Patterson2011-04-291-0/+5
|
* fixture methods can be overridden and super() is usefulAaron Patterson2011-02-151-0/+15
|
* fixing variable names, removing FixtureFile instances from test ivarsAaron Patterson2011-02-151-6/+0
|
* create_fixtures() should always return a listAaron Patterson2011-02-111-5/+5
|
* favor composition over inheritence. use AS::OrderedHash rather than omapAaron Patterson2011-02-111-1/+1
|
* Make serialized fixtures work againPratik Naik2010-12-291-1/+6
|
* removing many unused variablesAaron Patterson2010-11-161-3/+3
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-8/+8
| | | | 's/[ \t]*$//' -i {} \;)
* Raising exception if fixture file can't be foundPaul Hieromnimon2010-08-111-0/+11
|
* Removed warnings when a variable is shadowedŁukasz Strzałkowski2010-07-191-3/+3
|
* prevent to run fixture accessor (e.g. test_foos for TestFoo model) as a test ↵Nobuhiro IMAI2010-05-161-0/+5
| | | | | | | case [#2992 state:resolved] Signed-off-by: Wijnand Wiersma <wijnand@videre.net> Signed-off-by: José Valim <jose.valim@gmail.com>
* Support fixtures for namespaced models [#2965 state:resolved]Andrew White2010-04-251-1/+9
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* fix a failure and some warnings on 1.9.2 [#4417 state:resolved]Aaron Patterson2010-04-161-1/+1
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* squelching more warnings in the AR tests. [#4218 state:resolved]Aaron Patterson2010-03-181-6/+6
| | | | Signed-off-by: wycats <wycats@gmail.com>
* reduce max size of fixture IDs to fix sqlite2 tests, because sqlite2 was ↵Chad Woolley2010-01-121-2/+2
| | | | | | getting negative and changing values for ID field. See http://www.sqlite.org/datatypes.html Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Fix binary fixture test on WindowsRob2009-08-081-1/+1
| | | | | | [#2597 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Reimplement Fixtures.identify so that it consistently generates identities ↵Ken Collins2009-05-181-0/+5
| | | | | | | | across ruby versions. [#2633 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.Jeremy Kemper2009-03-081-2/+2
| | | | [#1617 state:resolved]
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-17/+13
|
* Update AR testsJeremy Kemper2008-11-071-4/+4
|
* 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-3/+3
| | | | | | | 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-0/+29
| | | | | | [#124 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix tests broken by mocha absence [#186 state:resolved]Tim Pope2008-05-131-9/+11
| | | | | | | Two ActiveRecord tests depended on mocha but were not marked as such. Place them in a use_mocha block so the test suite passes. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed fixture caching with prefixed or suffixed tables.Rhett Sutphin2008-04-301-0/+4
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Ruby 1.9 compat: force encoding for binary comparison testsJeremy Kemper2008-04-011-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: delete DEFAULTS key from Hash not Omap arrayJeremy Kemper2008-04-011-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9: mark failing assertionJeremy Kemper2008-03-301-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de