Slide 29
Slide 29 text
committee-railsͷ͍ํ
describe 'Api::V1::BlogsController', type: :request do
include Committee::Rails::Test::Methods
def committee_options
@committee_options ||= {
schema_path: Rails.root.join('APIεΩʔϚͷύε'),
old_assert_behavior: false
}
end
describe 'GET /api/v1/blogs' do
it 'Ϩεϙϯε͕APIυΩϡϝϯτͱҰக͢Δ' do
get '/api/v1/blogs'
assert_response_schema_confirm
end
end
end