diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 16:44:38 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 16:44:38 -0400 |
commit | 16707d1b96365ab569e7a5e47a3d694c14d4132c (patch) | |
tree | 65c2be2558c1a04c0dbb0bfaca9a7ce3ade731d3 /spec/arel/algebra | |
parent | ed8e0f9c02c291a51f93a2123e099d07756d75bb (diff) | |
download | rails-16707d1b96365ab569e7a5e47a3d694c14d4132c.tar.gz rails-16707d1b96365ab569e7a5e47a3d694c14d4132c.tar.bz2 rails-16707d1b96365ab569e7a5e47a3d694c14d4132c.zip |
Add spec for Attribute#inspect
Diffstat (limited to 'spec/arel/algebra')
-rw-r--r-- | spec/arel/algebra/unit/primitives/attribute_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 == "<Attribute id>" + end + end + describe Attribute::Transformations do describe '#as' do it "manufactures an aliased attributed" do |