aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/arel/attributes/attribute_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Support beginless ranges in hash conditions.Josh Goodall2019-07-171-0/+24
| | | | | | | | | Ruby 2.7 introduces beginless ranges (..value and ...value) and as with endless ranges we can turn these into inequalities, enabling expressions such as Order.where(created_at: ..1.year.ago) User.where(karma: ...0)
* More exercise test cases for `not_between`Ryuta Kamizono2019-01-121-29/+82
| | | | | | And support endless ranges for `not_between` like as `between`. Follow up #34906.
* Support endless ranges in whereGreg Navis2019-01-111-0/+12
| | | | | | This commit adds support for endless ranges, e.g. (1..), that were added in Ruby 2.6. They're functionally equivalent to explicitly specifying Float::INFINITY as the end of the range.
* Make `Arel::Test` subclass of `ActiveSupport::TestCase`Yasuo Honda2018-05-011-1/+1
| | | | | | | | | | not `Minitest::Test` to address `CustomCops/RefuteNot` and `CustomCops/AssertNot` offenses for Arel test cases Also including `ActiveSupport::Testing::Assertions` to `Arel::Spec` and add test/unit backwards compatibility methods Fixes #32720
* Arel: rubocop -aMatthew Draper2018-02-241-222/+223
|
* Merge Arel into Active RecordMatthew Draper2018-02-241-0/+1014