diff options
author | Robert Speicher <robert@gitlab.com> | 2016-09-27 09:27:21 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-09-27 09:27:21 +0000 |
commit | 83624a0ced2e66d1b71103b3ba4f1e4841e6a3d0 (patch) | |
tree | 12a2973586509fcea0a9490551771e2bec12c88a /spec/features | |
parent | ab496d82ecd1cc675d10fc30a3af279ad4ab1edf (diff) | |
parent | 97551e8dd9dc5711951e865e7f9875f8cd5712ac (diff) | |
download | gitlab-ce-83624a0ced2e66d1b71103b3ba4f1e4841e6a3d0.tar.gz |
Merge branch 'improvement/project-with-board-factory' into 'master'
Improve project_with_board factory to create the default lists
## What does this MR do?
Create the default lists after creating a project with the `project_with_board` factory. This makes the setup phase on tests be more simpler.
## Why was this MR needed?
These two lists are present in every issue board, so we don't have to create them manually in every test.
See merge request !6480
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/boards/boards_spec.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/features/boards/boards_spec.rb b/spec/features/boards/boards_spec.rb index 1fd276d5b18..2dcbc4703e1 100644 --- a/spec/features/boards/boards_spec.rb +++ b/spec/features/boards/boards_spec.rb @@ -4,15 +4,11 @@ describe 'Issue Boards', feature: true, js: true do include WaitForAjax include WaitForVueResource - let(:project) { create(:empty_project, :public) } + let(:project) { create(:project_with_board, :public) } let(:user) { create(:user) } let!(:user2) { create(:user) } before do - project.create_board - project.board.lists.create(list_type: :backlog) - project.board.lists.create(list_type: :done) - project.team << [user, :master] project.team << [user2, :master] |