From 36c8cb43ffc2d1bc217cadf4341aa4b0ea6df992 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 20 Jul 2010 14:33:49 -0700 Subject: a short inspect is not helpful --- lib/arel/algebra/attributes/attribute.rb | 4 ---- spec/algebra/unit/primitives/attribute_spec.rb | 6 ------ spec/algebra/unit/primitives/expression_spec.rb | 6 ------ 3 files changed, 16 deletions(-) diff --git a/lib/arel/algebra/attributes/attribute.rb b/lib/arel/algebra/attributes/attribute.rb index faa6c068d5..f1085aaae0 100644 --- a/lib/arel/algebra/attributes/attribute.rb +++ b/lib/arel/algebra/attributes/attribute.rb @@ -19,10 +19,6 @@ module Arel false end - def inspect - "" - end - module Transformations def self.included(klass) klass.send :alias_method, :eql?, :== diff --git a/spec/algebra/unit/primitives/attribute_spec.rb b/spec/algebra/unit/primitives/attribute_spec.rb index f734cc9c38..092eeeb2f8 100644 --- a/spec/algebra/unit/primitives/attribute_spec.rb +++ b/spec/algebra/unit/primitives/attribute_spec.rb @@ -7,12 +7,6 @@ module Arel @attribute = @relation[:id] end - describe "#inspect" do - it "returns a simple, short inspect string" do - @attribute.inspect.should == "" - end - end - describe Attribute::Transformations do describe '#as' do it "manufactures an aliased attributed" do diff --git a/spec/algebra/unit/primitives/expression_spec.rb b/spec/algebra/unit/primitives/expression_spec.rb index ac932ed139..483817f735 100644 --- a/spec/algebra/unit/primitives/expression_spec.rb +++ b/spec/algebra/unit/primitives/expression_spec.rb @@ -7,12 +7,6 @@ module Arel @attribute = @relation[:id] end - describe "#inspect" do - it "returns a simple, short inspect string" do - @attribute.count.inspect.should == ">" - end - end - describe Expression::Transformations do before do @expression = Count.new(@attribute) -- cgit v1.2.3