aboutsummaryrefslogtreecommitdiffstats
path: root/spec/arel/unit
diff options
context:
space:
mode:
Diffstat (limited to 'spec/arel/unit')
-rw-r--r--spec/arel/unit/primitives/attribute_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/arel/unit/primitives/attribute_spec.rb b/spec/arel/unit/primitives/attribute_spec.rb
index b253892b58..e21a5902d5 100644
--- a/spec/arel/unit/primitives/attribute_spec.rb
+++ b/spec/arel/unit/primitives/attribute_spec.rb
@@ -45,15 +45,15 @@ module Arel
end
describe Attribute::Congruence do
- describe '=~' do
+ describe 'match?' do
it "obtains if the attributes are identical" do
- Attribute.new(@relation, :name).should =~ Attribute.new(@relation, :name)
+ Attribute.new(@relation, :name).should be_match(Attribute.new(@relation, :name))
end
it "obtains if the attributes have an overlapping history" do
- Attribute.new(@relation, :name, :ancestor => Attribute.new(@relation, :name)).should =~ Attribute.new(@relation, :name)
- Attribute.new(@relation, :name).should =~ Attribute.new(@relation, :name, :ancestor => Attribute.new(@relation, :name))
+ Attribute.new(@relation, :name, :ancestor => Attribute.new(@relation, :name)).should be_match(Attribute.new(@relation, :name))
+ Attribute.new(@relation, :name).should be_match(Attribute.new(@relation, :name, :ancestor => Attribute.new(@relation, :name)))
end
end