Commit 92702772 authored by Rémy Coutable's avatar Rémy Coutable

Eagerly create a milestone that is used in a feature spec

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 2443ab69
require 'rails_helper'
feature 'Multiple issue updating from issues#index', feature: true do
feature 'Multiple issue updating from issues#index', :js do
let!(:project) { create(:project) }
let!(:issue) { create(:issue, project: project) }
let!(:user) { create(:user)}
before do
project.team << [user, :master]
gitlab_sign_in(user)
sign_in(user)
end
context 'status', js: true do
context 'status' do
it 'sets to closed' do
visit namespace_project_issues_path(project.namespace, project)
......@@ -37,7 +37,7 @@ feature 'Multiple issue updating from issues#index', feature: true do
end
end
context 'assignee', js: true do
context 'assignee' do
it 'updates to current user' do
visit namespace_project_issues_path(project.namespace, project)
......@@ -67,8 +67,8 @@ feature 'Multiple issue updating from issues#index', feature: true do
end
end
context 'milestone', js: true do
let(:milestone) { create(:milestone, project: project) }
context 'milestone' do
let!(:milestone) { create(:milestone, project: project) }
it 'updates milestone' do
visit namespace_project_issues_path(project.namespace, project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment