diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-06 11:30:53 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-06 11:30:53 -0700 |
commit | 389c4fc2582ae42c32a20b7f6a6cb2c5680343fc (patch) | |
tree | 56dfaf57a4eecc052cb29ba3e3d0d95973304b64 /spec/algebra | |
parent | 21267d3c59457141e6dd6e47ba290df2cd583866 (diff) | |
download | rails-389c4fc2582ae42c32a20b7f6a6cb2c5680343fc.tar.gz rails-389c4fc2582ae42c32a20b7f6a6cb2c5680343fc.tar.bz2 rails-389c4fc2582ae42c32a20b7f6a6cb2c5680343fc.zip |
add an operator to inequality
Diffstat (limited to 'spec/algebra')
-rw-r--r-- | spec/algebra/unit/predicates/inequality_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/algebra/unit/predicates/inequality_spec.rb b/spec/algebra/unit/predicates/inequality_spec.rb index 557494e2cd..f95b8d120e 100644 --- a/spec/algebra/unit/predicates/inequality_spec.rb +++ b/spec/algebra/unit/predicates/inequality_spec.rb @@ -12,6 +12,12 @@ module Arel @b = Inequality.new(right, left) end + describe 'operator' do + it "should have one" do + @a.operator.should == :"!=" + end + end + describe '==' do it "is equal to itself" do @a.should == @a |