diff options
Diffstat (limited to 'spec/lib/gitlab/slash_commands/presenters')
-rw-r--r-- | spec/lib/gitlab/slash_commands/presenters/issue_move_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/lib/gitlab/slash_commands/presenters/issue_move_spec.rb b/spec/lib/gitlab/slash_commands/presenters/issue_move_spec.rb index 56b64d32192..7726c3b6a87 100644 --- a/spec/lib/gitlab/slash_commands/presenters/issue_move_spec.rb +++ b/spec/lib/gitlab/slash_commands/presenters/issue_move_spec.rb @@ -3,11 +3,11 @@ require 'spec_helper' describe Gitlab::SlashCommands::Presenters::IssueMove do - set(:admin) { create(:admin) } - set(:project) { create(:project) } - set(:other_project) { create(:project) } - set(:old_issue) { create(:issue, project: project) } - set(:new_issue) { Issues::MoveService.new(project, admin).execute(old_issue, other_project) } + let_it_be(:admin) { create(:admin) } + let_it_be(:project, reload: true) { create(:project) } + let_it_be(:other_project) { create(:project) } + let_it_be(:old_issue, reload: true) { create(:issue, project: project) } + let(:new_issue) { Issues::MoveService.new(project, admin).execute(old_issue, other_project) } let(:attachment) { subject[:attachments].first } subject { described_class.new(new_issue).present(old_issue) } |