This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-05 10:20:05 -04:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe TagsController, type: :controller do
|
|
|
|
|
|
|
|
describe 'GET #show' do
|
2016-11-05 17:09:51 -04:00
|
|
|
before do
|
|
|
|
Fabricate(:tag, name: 'test')
|
|
|
|
end
|
|
|
|
|
2016-11-05 10:20:05 -04:00
|
|
|
it 'returns http success' do
|
|
|
|
get :show, params: { id: 'test' }
|
|
|
|
expect(response).to have_http_status(:success)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|