wip:swagger-based dsl for rspec

This commit is contained in:
domaindrivendev
2016-03-09 16:58:38 -08:00
parent fc877b4047
commit d579dab7d8
12 changed files with 246 additions and 195 deletions

View File

@@ -1,6 +1,8 @@
class Blog < ActiveRecord::Base
attr_accessible :content, :title
validates :content, presence: true
def as_json(options)
{
title: title,