diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-07 00:32:32 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-07 00:32:32 -0700 |
commit | 116b6f05b0e72ce35808cb42dfbe4c543d8504ea (patch) | |
tree | a48530734159cf67148f78faa4cfd3b29a42dbdd /spec | |
parent | f22ea4dd5b20c979dbacf8fd5768659e9e4d0706 (diff) | |
download | rails-116b6f05b0e72ce35808cb42dfbe4c543d8504ea.tar.gz rails-116b6f05b0e72ce35808cb42dfbe4c543d8504ea.tar.bz2 rails-116b6f05b0e72ce35808cb42dfbe4c543d8504ea.zip |
removing operator overloading
Diffstat (limited to 'spec')
-rw-r--r-- | spec/arel/unit/primitives/attribute_spec.rb | 8 |
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 |