You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
307 B

7 years ago
7 years ago
  1. require 'rails_helper'
  2. RSpec.describe TagsController, type: :controller do
  3. describe 'GET #show' do
  4. before do
  5. Fabricate(:tag, name: 'test')
  6. end
  7. it 'returns http success' do
  8. get :show, params: { id: 'test' }
  9. expect(response).to have_http_status(:success)
  10. end
  11. end
  12. end