Add test type to all interactor tests
This commit is contained in:
parent
155ce57723
commit
17640529bc
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
RSpec.describe AddGroupStageToTournament do
|
RSpec.describe AddGroupStageToTournament, type: :interactor do
|
||||||
let(:empty_tournament_context) do
|
let(:empty_tournament_context) do
|
||||||
AddGroupStageToTournament.call(tournament: @empty_tournament, groups: @groups)
|
AddGroupStageToTournament.call(tournament: @empty_tournament, groups: @groups)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
RSpec.describe AddPlayoffsToTournament do
|
RSpec.describe AddPlayoffsToTournament, type: :interactor do
|
||||||
let(:group_stage_tournament_context) do
|
let(:group_stage_tournament_context) do
|
||||||
AddPlayoffsToTournament.call(tournament: @group_stage_tournament)
|
AddPlayoffsToTournament.call(tournament: @group_stage_tournament)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
RSpec.describe PopulateMatchBelow do
|
RSpec.describe PopulateMatchBelow, type: :interactor do
|
||||||
before do
|
before do
|
||||||
@match = create(:match)
|
@match = create(:match)
|
||||||
@objects_to_save = [create(:match), create_list(:match_score, 2)]
|
@objects_to_save = [create(:match), create_list(:match_score, 2)]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
RSpec.describe SaveApplicationRecordObject do
|
RSpec.describe SaveApplicationRecordObject, type: :interactor do
|
||||||
before do
|
before do
|
||||||
@tournament = create(:tournament)
|
@tournament = create(:tournament)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
RSpec.describe UpdateGroupsGroupScores do
|
RSpec.describe UpdateGroupsGroupScores, type: :interactor do
|
||||||
before do
|
before do
|
||||||
@group = create(:group)
|
@group = create(:group)
|
||||||
@group_scores = create_list(:group_score, 2)
|
@group_scores = create_list(:group_score, 2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue