assert response body based on spec examples

This commit is contained in:
domaindrivendev
2016-02-23 00:30:10 -08:00
parent 071239727a
commit 9ad7a49e6d
16 changed files with 218 additions and 59 deletions

View File

@@ -0,0 +1,10 @@
class Blog < ActiveRecord::Base
attr_accessible :content, :title
def as_json(options)
{
title: title,
content: content
}
end
end