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:
parent
ed8e0f9c02
commit
16707d1b96
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,12 @@ module Arel
|
||||||
@attribute = @relation[:id]
|
@attribute = @relation[:id]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe "#inspect" do
|
||||||
|
it "returns a simple, short inspect string" do
|
||||||
|
@attribute.inspect.should == "<Attribute id>"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe Attribute::Transformations do
|
describe Attribute::Transformations do
|
||||||
describe '#as' do
|
describe '#as' do
|
||||||
it "manufactures an aliased attributed" do
|
it "manufactures an aliased attributed" do
|
||||||
|
|
Loading…
Reference in a new issue