diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-19 13:49:43 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-19 13:49:43 -0700 |
commit | 3eae3b08eef84237c201a2f7bfc5292dbbe6951c (patch) | |
tree | f2bab85c6a7af1f60b7a03bb7a116d2bf681a8dc /spec/arel/unit/primitives/attribute_spec.rb | |
parent | 14210279b23788d47a18f0615f5e20234550c8ac (diff) | |
download | rails-3eae3b08eef84237c201a2f7bfc5292dbbe6951c.tar.gz rails-3eae3b08eef84237c201a2f7bfc5292dbbe6951c.tar.bz2 rails-3eae3b08eef84237c201a2f7bfc5292dbbe6951c.zip |
renamed select operation to where
Diffstat (limited to 'spec/arel/unit/primitives/attribute_spec.rb')
-rw-r--r-- | spec/arel/unit/primitives/attribute_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/arel/unit/primitives/attribute_spec.rb b/spec/arel/unit/primitives/attribute_spec.rb index 890ac0e813..b341c6f88e 100644 --- a/spec/arel/unit/primitives/attribute_spec.rb +++ b/spec/arel/unit/primitives/attribute_spec.rb @@ -16,7 +16,7 @@ module Arel describe '#bind' do it "manufactures an attribute with the relation bound and self as an ancestor" do - derived_relation = @relation.select(@relation[:id].eq(1)) + derived_relation = @relation.where(@relation[:id].eq(1)) @attribute.bind(derived_relation).should == Attribute.new(derived_relation, @attribute.name, :ancestor => @attribute) end |