From 16707d1b96365ab569e7a5e47a3d694c14d4132c Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 17 May 2009 16:44:38 -0400 Subject: [PATCH] Add spec for Attribute#inspect --- spec/arel/algebra/unit/primitives/attribute_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/arel/algebra/unit/primitives/attribute_spec.rb b/spec/arel/algebra/unit/primitives/attribute_spec.rb index 89e338e377..afcf1237e0 100644 --- a/spec/arel/algebra/unit/primitives/attribute_spec.rb +++ b/spec/arel/algebra/unit/primitives/attribute_spec.rb @@ -7,6 +7,12 @@ 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