Move `let` calls inside the `describe` block using them
This commit is contained in:
parent
5ad9d94d8e
commit
74f8b5c3d0
|
@ -3,17 +3,17 @@ require 'rails_helper'
|
|||
feature 'Merge Requests > User uses quick actions', js: true do
|
||||
include QuickActionsHelpers
|
||||
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:project, :public, :repository) }
|
||||
let(:merge_request) { create(:merge_request, source_project: project) }
|
||||
let!(:milestone) { create(:milestone, project: project, title: 'ASAP') }
|
||||
|
||||
it_behaves_like 'issuable record that supports quick actions in its description and notes', :merge_request do
|
||||
let(:issuable) { create(:merge_request, source_project: project) }
|
||||
let(:new_url_opts) { { merge_request: { source_branch: 'feature', target_branch: 'master' } } }
|
||||
end
|
||||
|
||||
describe 'merge-request-only commands' do
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:project, :public, :repository) }
|
||||
let(:merge_request) { create(:merge_request, source_project: project) }
|
||||
let!(:milestone) { create(:milestone, project: project, title: 'ASAP') }
|
||||
|
||||
before do
|
||||
project.team << [user, :master]
|
||||
sign_in(user)
|
||||
|
|
Loading…
Reference in New Issue