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