Add test type to all interactor tests

This commit is contained in:
Daniel Schädler 2019-06-06 15:48:02 +02:00
parent 42ee77d0ee
commit d8a9b27ab3
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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)]

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe SaveApplicationRecordObject do
RSpec.describe SaveApplicationRecordObject, type: :interactor do
before do
@tournament = create(:tournament)
end

View File

@ -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)