diff options
author | Nikolai B <nikolai-b@users.noreply.github.com> | 2018-04-25 17:16:48 +0100 |
---|---|---|
committer | Nikolai B <nikolai-b@users.noreply.github.com> | 2018-05-14 19:36:56 +0100 |
commit | 2beafeddf0378c0b4b0780c0d57c694b79f1f710 (patch) | |
tree | 1184e4c61b0eeec89914d9747cf3edc6d3380d3c /activerecord/test/cases/arel/nodes | |
parent | df850b8d7126044a820291bbfd2bce80636a442c (diff) | |
download | rails-2beafeddf0378c0b4b0780c0d57c694b79f1f710.tar.gz rails-2beafeddf0378c0b4b0780c0d57c694b79f1f710.tar.bz2 rails-2beafeddf0378c0b4b0780c0d57c694b79f1f710.zip |
Add math tests
After #449 was merged math can be done on these
nodes, adding a test file to unit test all the
math operators.
Diffstat (limited to 'activerecord/test/cases/arel/nodes')
-rw-r--r-- | activerecord/test/cases/arel/nodes/count_test.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/activerecord/test/cases/arel/nodes/count_test.rb b/activerecord/test/cases/arel/nodes/count_test.rb index 3107659e77..daabea6c4c 100644 --- a/activerecord/test/cases/arel/nodes/count_test.rb +++ b/activerecord/test/cases/arel/nodes/count_test.rb @@ -32,13 +32,4 @@ class Arel::Nodes::CountTest < Arel::Spec assert_equal 2, array.uniq.size end end - - describe "math" do - it "allows mathematical functions" do - table = Arel::Table.new :users - (table[:id].count + 1).to_sql.must_be_like %{ - (COUNT("users"."id") + 1) - } - end - end end |