Split test methods for failed stopping of matches
This commit is contained in:
parent
0afe6badcc
commit
f7a46cf21e
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue