diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-02-16 16:42:46 -0800 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-02-16 16:42:46 -0800 |
commit | a2339b41746b92231dfbb15ab19d0f7e1aa2e69a (patch) | |
tree | 2f434f2dbe4eb1ac387a7a089c7216a176d197f5 /spec | |
parent | d0ba361c93aa94865ccfe739e9ab65654771e38e (diff) | |
download | rails-a2339b41746b92231dfbb15ab19d0f7e1aa2e69a.tar.gz rails-a2339b41746b92231dfbb15ab19d0f7e1aa2e69a.tar.bz2 rails-a2339b41746b92231dfbb15ab19d0f7e1aa2e69a.zip |
organized congruence stuff in attribute
Diffstat (limited to 'spec')
-rw-r--r-- | spec/active_relation/primitives/attribute_spec.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/spec/active_relation/primitives/attribute_spec.rb b/spec/active_relation/primitives/attribute_spec.rb index 535e6245b5..39feacbac7 100644 --- a/spec/active_relation/primitives/attribute_spec.rb +++ b/spec/active_relation/primitives/attribute_spec.rb @@ -47,14 +47,16 @@ module ActiveRelation end end - describe '=~' do - it "obtains if the attributes are identical" do - Attribute.new(@relation, :name).should =~ Attribute.new(@relation, :name) - end + describe Attribute::Congruence do + describe '=~' do + it "obtains if the attributes are identical" do + Attribute.new(@relation, :name).should =~ Attribute.new(@relation, :name) + end - it "obtains if the attributes have an overlapping history" do - Attribute.new(@relation, :name, nil, Attribute.new(@relation, :name)).should =~ Attribute.new(@relation, :name) - Attribute.new(@relation, :name).should =~ Attribute.new(@relation, :name, nil, Attribute.new(@relation, :name)) + it "obtains if the attributes have an overlapping history" do + Attribute.new(@relation, :name, nil, Attribute.new(@relation, :name)).should =~ Attribute.new(@relation, :name) + Attribute.new(@relation, :name).should =~ Attribute.new(@relation, :name, nil, Attribute.new(@relation, :name)) + end end end |