mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
assert response body based on spec examples
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user