Split test methods for failed stopping of matches

This commit is contained in:
Daniel Schädler 2019-05-29 18:14:04 +02:00
parent 68535b89fc
commit ab33ec157d
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ RSpec.describe MatchesController, type: :controller do
it 'returns unprocessable entity' do it 'returns unprocessable entity' do
expect(response).to have_http_status(:unprocessable_entity) expect(response).to have_http_status(:unprocessable_entity)
end
it 'doesn\'t change the matches status' do
expect(@running_playoff_match.state).to eq('in_progress') expect(@running_playoff_match.state).to eq('in_progress')
end end