diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-20 14:33:49 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-20 14:33:49 -0700 |
commit | 36c8cb43ffc2d1bc217cadf4341aa4b0ea6df992 (patch) | |
tree | c3fff60298a9dc7985594db77f9b1b9c5e35a7f7 | |
parent | d6edefb5a7c1ad56c464ce5ca273a2db736e7b6e (diff) | |
download | rails-36c8cb43ffc2d1bc217cadf4341aa4b0ea6df992.tar.gz rails-36c8cb43ffc2d1bc217cadf4341aa4b0ea6df992.tar.bz2 rails-36c8cb43ffc2d1bc217cadf4341aa4b0ea6df992.zip |
a short inspect is not helpful
-rw-r--r-- | lib/arel/algebra/attributes/attribute.rb | 4 | ||||
-rw-r--r-- | spec/algebra/unit/primitives/attribute_spec.rb | 6 | ||||
-rw-r--r-- | spec/algebra/unit/primitives/expression_spec.rb | 6 |
3 files changed, 0 insertions, 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 - "<Attribute #{name}>" - 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 == "<Attribute id>" - 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 == "<Arel::Count <Attribute id>>" - end - end - describe Expression::Transformations do before do @expression = Count.new(@attribute) |