From 28b11fdf4d4e5cd4b98d6c79fc88999a41532103 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Sat, 16 Feb 2008 16:14:11 -0800 Subject: white box testing --- spec/active_relation/primitives/expression_spec.rb | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'spec/active_relation') 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 -- cgit v1.2.3