diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-29 12:01:08 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-29 12:01:08 -0700 |
commit | 068b184a59a98b4acdc63a2833c360199d138c1d (patch) | |
tree | 2eb628fc6d9ad09938033794739843ed16843a0a /spec/algebra/unit/relations/relation_spec.rb | |
parent | 26ed429976ac6486c0473f13b6e0f16e05ede484 (diff) | |
download | rails-068b184a59a98b4acdc63a2833c360199d138c1d.tar.gz rails-068b184a59a98b4acdc63a2833c360199d138c1d.tar.bz2 rails-068b184a59a98b4acdc63a2833c360199d138c1d.zip |
PERF: removing many splats
Diffstat (limited to 'spec/algebra/unit/relations/relation_spec.rb')
-rw-r--r-- | spec/algebra/unit/relations/relation_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/algebra/unit/relations/relation_spec.rb b/spec/algebra/unit/relations/relation_spec.rb index 2a2fb15d89..f4769526da 100644 --- a/spec/algebra/unit/relations/relation_spec.rb +++ b/spec/algebra/unit/relations/relation_spec.rb @@ -97,11 +97,11 @@ module Arel end it "manufactures a where relation" do - @relation.where(@predicate).should == Where.new(@relation, @predicate) + @relation.where(@predicate).should == Where.new(@relation, [@predicate]) end it "accepts arbitrary strings" do - @relation.where("arbitrary").should == Where.new(@relation, "arbitrary") + @relation.where("arbitrary").should == Where.new(@relation, ["arbitrary"]) end describe 'when given a blank predicate' do @@ -113,7 +113,7 @@ module Arel describe '#order' do it "manufactures an order relation" do - @relation.order(@attribute1, @attribute2).should == Order.new(@relation, @attribute1, @attribute2) + @relation.order(@attribute1, @attribute2).should == Order.new(@relation, [@attribute1, @attribute2]) end describe 'when given a blank ordering' do @@ -149,7 +149,7 @@ module Arel describe '#group' do it 'manufactures a group relation' do - @relation.group(@attribute1, @attribute2).should == Group.new(@relation, @attribute1, @attribute2) + @relation.group(@attribute1, @attribute2).should == Group.new(@relation, [@attribute1, @attribute2]) end describe 'when given blank groupings' do |