From 116b6f05b0e72ce35808cb42dfbe4c543d8504ea Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Wed, 7 May 2008 00:32:32 -0700 Subject: removing operator overloading --- spec/arel/unit/primitives/attribute_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/arel') 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 -- cgit v1.2.3