aboutsummaryrefslogtreecommitdiffstats
path: root/spec/arel/engines/memory/unit/relations/array_spec.rb
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2009-05-17 15:44:03 -0400
committerBryan Helmkamp <bryan@brynary.com>2009-05-17 15:44:03 -0400
commitb7f58db57a535806e0cfc3057fbab80ca43b1a53 (patch)
tree987ef15b24bbb0cab7edd43c61618fbf46ce02fa /spec/arel/engines/memory/unit/relations/array_spec.rb
parent8339f024c7663133a78c4d0a8824b5b6fafaf239 (diff)
downloadrails-b7f58db57a535806e0cfc3057fbab80ca43b1a53.tar.gz
rails-b7f58db57a535806e0cfc3057fbab80ca43b1a53.tar.bz2
rails-b7f58db57a535806e0cfc3057fbab80ca43b1a53.zip
better test ordering
Conflicts: doc/TODO
Diffstat (limited to 'spec/arel/engines/memory/unit/relations/array_spec.rb')
-rw-r--r--spec/arel/engines/memory/unit/relations/array_spec.rb86
1 files changed, 0 insertions, 86 deletions
diff --git a/spec/arel/engines/memory/unit/relations/array_spec.rb b/spec/arel/engines/memory/unit/relations/array_spec.rb
index 22cddf7156..4fe24c77fa 100644
--- a/spec/arel/engines/memory/unit/relations/array_spec.rb
+++ b/spec/arel/engines/memory/unit/relations/array_spec.rb
@@ -27,92 +27,6 @@ module Arel
Row.new(@relation, [3, 'goose'])
]
end
-
- describe 'where' do
- xit 'filters the relation with the provided predicate' do
- @relation \
- .where(@relation[:id].lt(3)) \
- .let do |relation|
- relation.call.should == [
- Row.new(relation, [1, 'duck']),
- Row.new(relation, [2, 'duck']),
- ]
- end
- end
-
- it 'filters the relation with the provided predicate' do
- @relation \
- .where(@relation[:id].gt(1)) \
- .where(@relation[:id].lt(3)) \
- .let do |relation|
- relation.call.should == [
- Row.new(relation, [2, 'duck'])
- ]
- end
- end
- end
-
- describe 'group' do
- xit 'sorts the relation with the provided ordering' do
- end
- end
-
- describe 'order' do
- it 'sorts the relation with the provided ordering' do
- @relation \
- .order(@relation[:id].desc) \
- .let do |relation|
- relation.call.should == [
- Row.new(relation, [3, 'goose']),
- Row.new(relation, [2, 'duck']),
- Row.new(relation, [1, 'duck'])
- ]
- end
- end
- end
-
- describe 'project' do
- it 'projects' do
- @relation \
- .project(@relation[:id]) \
- .let do |relation|
- relation.call.should == [
- Row.new(relation, [1]),
- Row.new(relation, [2]),
- Row.new(relation, [3])
- ]
- end
- end
- end
-
- describe 'skip' do
- it 'slices' do
- @relation \
- .skip(1) \
- .let do |relation|
- relation.call.should == [
- Row.new(relation, [2, 'duck']),
- Row.new(relation, [3, 'goose']),
- ]
- end
- end
- end
-
- describe 'take' do
- it 'dices' do
- @relation \
- .take(2) \
- .let do |relation|
- relation.call.should == [
- Row.new(relation, [1, 'duck']),
- Row.new(relation, [2, 'duck']),
- ]
- end
- end
- end
-
- describe 'join' do
- end
end
end
end \ No newline at end of file