aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-28 15:16:07 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-28 15:16:07 -0700
commitc93f75619441cc394ce193b8af9823a5d3acf0d4 (patch)
treed1cd5757052527552a45925ca5b9394561776a37 /spec
parent1dbbc1b9871bd65d6ba149152b5deb23a53b67f8 (diff)
downloadrails-c93f75619441cc394ce193b8af9823a5d3acf0d4.tar.gz
rails-c93f75619441cc394ce193b8af9823a5d3acf0d4.tar.bz2
rails-c93f75619441cc394ce193b8af9823a5d3acf0d4.zip
initializing variables, removing ==
Diffstat (limited to 'spec')
-rw-r--r--spec/algebra/unit/relations/relation_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/algebra/unit/relations/relation_spec.rb b/spec/algebra/unit/relations/relation_spec.rb
index f51ecd7789..8d0639ee07 100644
--- a/spec/algebra/unit/relations/relation_spec.rb
+++ b/spec/algebra/unit/relations/relation_spec.rb
@@ -72,8 +72,10 @@ module Arel
describe '#project' do
it "manufactures a projection relation" do
- @relation.project(@attribute1, @attribute2). \
- should == Project.new(@relation, @attribute1, @attribute2)
+ project = @relation.project(@attribute1, @attribute2)
+ project.relation.should == @relation
+ project.projections.should == [@attribute1, @attribute2]
+ project.should be_kind_of Project
end
describe "when given blank attributes" do