fixup test stop match method numero dos
This commit is contained in:
parent
16a38d141d
commit
c846df9d4e
|
|
@ -82,6 +82,8 @@ RSpec.describe MatchesController, type: :controller do
|
||||||
|
|
||||||
context 'stops the match' do
|
context 'stops the match' do
|
||||||
before do
|
before do
|
||||||
|
@running_playoff_match.match_scores.each_with_index { |ms, i| ms.points = i}
|
||||||
|
@running_playoff_match.save
|
||||||
put :update, params: { id: @running_playoff_match.to_param }.merge(finished)
|
put :update, params: { id: @running_playoff_match.to_param }.merge(finished)
|
||||||
@running_playoff_match.reload
|
@running_playoff_match.reload
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue