Move index specs into without parameters context

This commit is contained in:
Thor77 2019-04-20 12:36:25 +02:00 committed by Malaber
parent ffc1b7c19e
commit 09ca262ab1
1 changed files with 29 additions and 27 deletions

View File

@ -12,6 +12,7 @@ RSpec.describe TournamentsController, type: :controller do
end
describe 'GET #index' do
context 'without parameters' do
it 'returns a success response' do
get :index
expect(response).to be_successful
@ -45,6 +46,7 @@ RSpec.describe TournamentsController, type: :controller do
expect(tournaments.map { |t| t[:id] }).not_to include(@private_tournament.id)
end
end
end
describe 'GET #show' do
it 'returns a success response' do