1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add spec for Attribute#inspect

This commit is contained in:
Bryan Helmkamp 2009-05-17 16:44:38 -04:00
parent ed8e0f9c02
commit 16707d1b96

View file

@ -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