diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-02-16 16:14:11 -0800 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-02-16 16:14:11 -0800 |
commit | 28b11fdf4d4e5cd4b98d6c79fc88999a41532103 (patch) | |
tree | a420cfa8291574e5eebfc07e8a0de0213ea7223d | |
parent | d5d7a8eb9935cd937441bd5233b410e5a0cfd41b (diff) | |
download | rails-28b11fdf4d4e5cd4b98d6c79fc88999a41532103.tar.gz rails-28b11fdf4d4e5cd4b98d6c79fc88999a41532103.tar.bz2 rails-28b11fdf4d4e5cd4b98d6c79fc88999a41532103.zip |
white box testing
-rw-r--r-- | spec/active_relation/primitives/expression_spec.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/active_relation/primitives/expression_spec.rb b/spec/active_relation/primitives/expression_spec.rb index fa854d89f9..707407d415 100644 --- a/spec/active_relation/primitives/expression_spec.rb +++ b/spec/active_relation/primitives/expression_spec.rb @@ -34,23 +34,6 @@ module ActiveRelation @expression.to_attribute.should == Attribute.new(@expression.relation, @expression.alias, nil, @expression) end end - - describe '#qualify' do - it "manufactures an expression aliased with that expression's qualified name" do - @expression.qualify.should == Expression.new(@attribute, "COUNT", @expression.qualified_name, @expression) - end - end - end - - describe '=~' do - it "obtains if the expressions are identical" do - Expression.new(@attribute, "COUNT").should =~ Expression.new(@attribute, "COUNT") - end - - it "obtains if the expressions have an overlapping history" do - Expression.new(@attribute, "COUNT", nil, Expression.new(@attribute, "COUNT")).should =~ Expression.new(@attribute, "COUNT") - Expression.new(@attribute, "COUNT").should =~ Expression.new(@attribute, "COUNT", nil, Expression.new(@attribute, "COUNT")) - end end describe '#to_sql' do |