diff options
author | Alexander Staubo <alex@bengler.no> | 2013-02-19 22:27:17 +0100 |
---|---|---|
committer | Alexander Staubo <alex@bengler.no> | 2014-06-20 17:08:05 -0400 |
commit | 69e9be95ac233eb7b446920bb49399277ea594ce (patch) | |
tree | 041be9088a60edddebb6dba93ce9dfe16bcd0345 /test/nodes | |
parent | f50de54a6f0c59ab75526cfdb7896830130ffdf7 (diff) | |
download | rails-69e9be95ac233eb7b446920bb49399277ea594ce.tar.gz rails-69e9be95ac233eb7b446920bb49399277ea594ce.tar.bz2 rails-69e9be95ac233eb7b446920bb49399277ea594ce.zip |
Windowing support for PARTITION BY clause.
Diffstat (limited to 'test/nodes')
-rw-r--r-- | test/nodes/test_window.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/nodes/test_window.rb b/test/nodes/test_window.rb index f09d16e441..9ec42be59f 100644 --- a/test/nodes/test_window.rb +++ b/test/nodes/test_window.rb @@ -7,9 +7,11 @@ module Arel it 'is equal with equal ivars' do window1 = Window.new window1.orders = [1, 2] + window1.partitions = [1] window1.frame 3 window2 = Window.new window2.orders = [1, 2] + window2.partitions = [1] window2.frame 3 array = [window1, window2] assert_equal 1, array.uniq.size @@ -18,9 +20,11 @@ module Arel it 'is not equal with different ivars' do window1 = Window.new window1.orders = [1, 2] + window1.partitions = [1] window1.frame 3 window2 = Window.new window2.orders = [1, 2] + window1.partitions = [1] window2.frame 4 array = [window1, window2] assert_equal 2, array.uniq.size @@ -33,9 +37,11 @@ module Arel it 'is equal with equal ivars' do window1 = NamedWindow.new 'foo' window1.orders = [1, 2] + window1.partitions = [1] window1.frame 3 window2 = NamedWindow.new 'foo' window2.orders = [1, 2] + window2.partitions = [1] window2.frame 3 array = [window1, window2] assert_equal 1, array.uniq.size @@ -44,9 +50,11 @@ module Arel it 'is not equal with different ivars' do window1 = NamedWindow.new 'foo' window1.orders = [1, 2] + window1.partitions = [1] window1.frame 3 window2 = NamedWindow.new 'bar' window2.orders = [1, 2] + window2.partitions = [1] window2.frame 3 array = [window1, window2] assert_equal 2, array.uniq.size @@ -68,6 +76,4 @@ module Arel end end end -end - - +end
\ No newline at end of file |