- 18 7月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 15 7月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 14 7月, 2012 4 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
Conflicts: activerecord/test/cases/query_cache_test.rb
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 13 7月, 2012 4 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 11 7月, 2012 1 次提交
-
-
由 Robb Kidd 提交于
Dry up reseting the renamed table after each test. Also made use of the AR::Base.connection object already available from AR::MigrationTest#connection.
-
- 07 7月, 2012 3 次提交
-
-
由 Jon Leighton 提交于
-
由 kennyj 提交于
-
由 Damien Mathieu 提交于
While it's interesting to have the results array, it can make a console or a webpage freeze if there are a lot of them. So this limits the number of records displayed in #inspect to 10 and tells how much were effectively found.
-
- 06 7月, 2012 3 次提交
-
-
由 Damir Zekic 提交于
Fixes #867
-
由 Jon Leighton 提交于
The reason for removing the previous implementation of `#inspect` was that it hid from you that you were dealing with a `Relation` rather than an `Array`. But it is still useful to be able to see the records, particularly if you're writing something like the following in tests: assert_equal [foo], Post.where(:bar) If the assertion fails, you want to see what records were actually loaded. So this implementation makes it clear that you've got a `Relation`, but also shows your records.
-
由 Philip Arndt 提交于
-
- 05 7月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
This patch fixes quoting for ActiveSupport::Duration instances: # before >> ActiveRecord::Base.connection.quote 30.minutes => "'--- 1800\n...\n'" # after >> ActiveRecord::Base.connection.quote 30.minutes => "1800" Also, adds a test for type casting ActiveSupport::Duration instances. Related to #1119.
-
- 04 7月, 2012 4 次提交
-
-
由 Aaron Patterson 提交于
Mocha is already required by AS::TestCase, so remove the duplicate requires.
-
由 Aleksey Magusev 提交于
-
由 Aleksey Magusev 提交于
-
由 Aleksey Magusev 提交于
Examples: add_reference :products, :supplier, polymorphic: true, index: true remove_reference :products, :user `add_belongs_to` and `remove_belongs_to` are acceptable.
-
- 03 7月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 02 7月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
connection.tables returns an array of strings
-
- 01 7月, 2012 3 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Aleksey Magusev 提交于
and create_join_table_test
-
由 Aleksey Magusev 提交于
Also fix failures in check options for nil
-
- 30 6月, 2012 2 次提交
-
-
由 kennyj 提交于
-
由 Brian Cardarella 提交于
-
- 29 6月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 28 6月, 2012 6 次提交
-
-
由 Carlos Antonio da Silva 提交于
Since composed_of was removed in 05174744, these tests were working "by mistake", due to the matching "address" string in the error message, but with a different error message than the expected multiparameter assignment error. Since "address" is not an attribute from Customer anymore, the error was "undefined method klass for nil", where nil was supposed to be the column object.
-
由 Carlos Antonio da Silva 提交于
All other multiparameter assignment tests are in the same file, so it makes sense to have all of them here.
-
由 Yasuo Honda 提交于
does not have TIME data type.
-
由 Yamada Masaki 提交于
-
由 Mauricio Linhares 提交于
Fixes #6825, adds tests covering cases and error possibilities, also changes SQLite3 driver to correctly generate a time column instead of datetime
-
由 Robb Kidd 提交于
-
- 27 6月, 2012 2 次提交
-
-
由 Yasuo Honda 提交于
which ids start from 1000 as a default.
-
由 Erich Menge 提交于
Setup each test with default ActiveRecord timezone settings to ensure each test starts with a clean slate. Fixes #6867.
-
- 26 6月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Fix build issue with postgresql.
-
- 25 6月, 2012 1 次提交
-
-
由 Egor Lynko 提交于
`FinderMethods#exists?` finder method now returns *false* with the *false* argument
-