- 10 3月, 2013 1 次提交
-
-
由 Ben Moss 提交于
This allows end-users to have a `connection` method on their models without clashing with ActiveRecord internals.
-
- 18 1月, 2013 2 次提交
-
-
由 Guillermo Iguaran 提交于
This reverts commit 637a7d9d, reversing changes made to 5937bd02.
-
由 robertomiranda 提交于
-
- 08 10月, 2012 1 次提交
-
-
由 Alexey Muranov 提交于
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.
-
- 27 4月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
-
- 23 3月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 12 2月, 2012 1 次提交
-
-
由 Vishnu Atrai 提交于
This reverts commit 7381596e.
-
- 11 2月, 2012 1 次提交
-
-
由 Karunakar (Ruby) 提交于
-
- 26 1月, 2012 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 04 1月, 2012 2 次提交
-
-
由 Jeremy Kemper 提交于
create_fixtures should accept symbol keys for custom table -> class mappings. Fixes an unintended regression.
-
由 Jeremy Kemper 提交于
setup_fixture_accessors should accept symbols for table names. Fixes an unintended (and untested) regression.
-
- 30 12月, 2011 2 次提交
-
-
由 Alexey Muranov 提交于
-
由 Alexey Muranov 提交于
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.
-
- 27 12月, 2011 1 次提交
-
-
由 Alexey Muranov 提交于
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.
-
- 25 12月, 2011 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 23 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
This reverts commit f8e484d0, reversing changes made to fa5adfb1. Reason: broke the postgres tests.
-
- 22 12月, 2011 1 次提交
-
-
由 Alexey Muranov 提交于
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.
-
- 11 12月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 10 10月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Use broken YAML that will fail with Syck as well as Psych. Fixes test_broken_yaml_exception in fixtures_test.rb on Ruby 1.8.7. Cherry-pick from 3-1-stable: b8d46924
-
- 06 10月, 2011 1 次提交
-
-
由 Jeremy Kemper 提交于
You can use multiple databases in your tests without disabling transactional fixtures.
-
- 02 9月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 14 8月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Quote these dates to prevent intermittent test failure. Suppose local time 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.
-
- 04 8月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Quote these dates to prevent intermittent test failure. Suppose local time 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.
-
- 08 7月, 2011 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 07 6月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 05 6月, 2011 2 次提交
-
-
由 Anil Wadghule 提交于
-
由 Jon Leighton 提交于
Refactor Active Record test connection setup. Please see the 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.
-
- 24 5月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 11 5月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 08 5月, 2011 1 次提交
-
-
由 Jason Noble 提交于
[Fixes #439]
-
- 30 4月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 16 2月, 2011 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 15 2月, 2011 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
fixtures will return a list of tables that may be effected, delete existing fixtures will delete those tables
-
- 12 2月, 2011 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 30 12月, 2010 1 次提交
-
-
由 Pratik Naik 提交于
-
- 17 11月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 14 8月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
-