diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-03-02 17:56:18 -0800 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-03-02 17:56:18 -0800 |
commit | c54392872f024d55e8a23ead3065e6119a52b234 (patch) | |
tree | 905aee0f7c40436ff41979227e9eb72e4a6840ba /spec/active_relation/unit/primitives/attribute_spec.rb | |
parent | 86550ef2bee377a5e4134dc63dedb138bb9ab7dc (diff) | |
download | rails-c54392872f024d55e8a23ead3065e6119a52b234.tar.gz rails-c54392872f024d55e8a23ead3065e6119a52b234.tar.bz2 rails-c54392872f024d55e8a23ead3065e6119a52b234.zip |
introduced engine dependency for sql strategies
- hacked in default engine for scalars -- BAD
Diffstat (limited to 'spec/active_relation/unit/primitives/attribute_spec.rb')
-rw-r--r-- | spec/active_relation/unit/primitives/attribute_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/active_relation/unit/primitives/attribute_spec.rb b/spec/active_relation/unit/primitives/attribute_spec.rb index 8b4f52c432..95c972d814 100644 --- a/spec/active_relation/unit/primitives/attribute_spec.rb +++ b/spec/active_relation/unit/primitives/attribute_spec.rb @@ -51,6 +51,12 @@ module ActiveRelation end end + describe '#engine' do + it "delegates to its relation" do + Attribute.new(@relation, :id).engine.should == @relation.engine + end + end + describe Attribute::Congruence do describe '=~' do it "obtains if the attributes are identical" do |