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

@@ -5,5 +5,14 @@ class V1ContractTest < ActionDispatch::IntegrationTest
include SwaggerRails::TestHelpers
swagger_doc 'v1/swagger.json'
swagger_test_all
#
# test '/blogs post' do
# swagger_test '/blogs', 'post'
# end
test '/blogs get' do
blog = Blog.create(title: 'Test Blog', content: 'Hello World')
swagger_test '/blogs', 'get'
end
end