aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/active_relation/primitives/attribute_spec.rb16
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