aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql/money_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rename `type_cast` to `type_cast_from_database`Sean Griffin2014-06-091-4/+4
| | | | | | | | In some cases there is a difference between the two, we should always be doing one or the other. For convenience, `type_cast` is still a private method on type, so new types that do not need different behavior don't need to implement two methods, but it has been moved to private so it cannot be used accidentally.
* Revert "test pg, we don't care about the internal state of `column#default`."Yves Senn2014-06-031-0/+2
| | | | | | | | | | | | | | Revert "test pg, remove unused column assignments. Follow up to 254cdf47" Related to #15492 This reverts commit 254cdf4728291277f3fbaa854f34495030e476b4. This reverts commit 4bcf9029452e0c760af04faab6b549710401e8cf. There are public methods that assume `Column#default` is type casted. The return value of `Column#default` is publicly relevant and should not change. /cc @sgrif
* pg, preserve money type when dumping schema and extract money default.Yves Senn2014-06-031-4/+22
|
* pg test, extract network address type tests into separate file.Yves Senn2014-05-221-1/+1
|
* pg, extract money tests into separate file.Yves Senn2014-05-211-0/+54
- Added assertions about the column. Specifically scale. - Move record insertion from setup into test method.