diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-28 15:16:07 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-28 15:16:07 -0700 |
commit | c93f75619441cc394ce193b8af9823a5d3acf0d4 (patch) | |
tree | d1cd5757052527552a45925ca5b9394561776a37 /spec/algebra | |
parent | 1dbbc1b9871bd65d6ba149152b5deb23a53b67f8 (diff) | |
download | rails-c93f75619441cc394ce193b8af9823a5d3acf0d4.tar.gz rails-c93f75619441cc394ce193b8af9823a5d3acf0d4.tar.bz2 rails-c93f75619441cc394ce193b8af9823a5d3acf0d4.zip |
initializing variables, removing ==
Diffstat (limited to 'spec/algebra')
-rw-r--r-- | spec/algebra/unit/relations/relation_spec.rb | 6 |
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 |