as_json wants a string
This commit is contained in:
parent
8cf0fa8446
commit
1f448e8555
1 changed files with 1 additions and 1 deletions
|
|
@ -374,7 +374,7 @@ describe Person do
|
|||
}
|
||||
end
|
||||
it 'return tags if asked' do
|
||||
@person.as_json(:includes => :tags).
|
||||
@person.as_json(:includes => "tags").
|
||||
should == @person.as_json.merge(:tags => @person.profile.tags.map{|t| "##{t.name}"})
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue