From 15ff7bb09c9080b582174378db18c316d61b513b Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Wed, 29 May 2019 18:14:04 +0200 Subject: [PATCH] Split test methods for failed stopping of matches --- spec/controllers/matches_controller_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/controllers/matches_controller_spec.rb b/spec/controllers/matches_controller_spec.rb index 48c73a2..57b920e 100644 --- a/spec/controllers/matches_controller_spec.rb +++ b/spec/controllers/matches_controller_spec.rb @@ -114,6 +114,9 @@ RSpec.describe MatchesController, type: :controller do it 'returns unprocessable entity' do 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') end