Wire up capybara & add simple feature spec for swagger-ui

This commit is contained in:
richie
2016-11-08 12:38:51 -08:00
parent 8315eda8b2
commit 99be8135f7
5 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
require 'rails_helper'
feature 'swagger-ui', js: true do
scenario 'browsing api-docs' do
visit '/api-docs'
expect(page).to have_content('GET /blogs Searches blogs')
expect(page).to have_content('POST /blogs Creates a blog')
expect(page).to have_content('GET /blogs/{id} Retrieves a blog')
end
end