aboutsummaryrefslogtreecommitdiffstats
path: root/spec/algebra/unit/relations/project_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/algebra/unit/relations/project_spec.rb')
-rw-r--r--spec/algebra/unit/relations/project_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/algebra/unit/relations/project_spec.rb b/spec/algebra/unit/relations/project_spec.rb
index 8886e65a2e..294bffafe9 100644
--- a/spec/algebra/unit/relations/project_spec.rb
+++ b/spec/algebra/unit/relations/project_spec.rb
@@ -9,7 +9,7 @@ module Arel
describe '#attributes' do
before do
- @projection = Project.new(@relation, @attribute)
+ @projection = Project.new(@relation, [@attribute])
end
it "manufactures attributes associated with the projection relation" do
@@ -20,13 +20,13 @@ module Arel
describe '#externalizable?' do
describe 'when the projections are attributes' do
it 'returns false' do
- Project.new(@relation, @attribute).should_not be_externalizable
+ Project.new(@relation, [@attribute]).should_not be_externalizable
end
end
describe 'when the projections include an aggregation' do
it "obtains" do
- Project.new(@relation, @attribute.sum).should be_externalizable
+ Project.new(@relation, [@attribute.sum]).should be_externalizable
end
end
end