as_json wants a string

This commit is contained in:
Raphael Sofaer 2011-07-07 10:56:55 -07:00
parent 8cf0fa8446
commit 1f448e8555

View file

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