diff options
Diffstat (limited to 'spec/features/boards')
-rw-r--r-- | spec/features/boards/multiple_boards_spec.rb | 10 | ||||
-rw-r--r-- | spec/features/boards/new_issue_spec.rb | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/spec/features/boards/multiple_boards_spec.rb b/spec/features/boards/multiple_boards_spec.rb index 2389707be9c..8e56be6bdd0 100644 --- a/spec/features/boards/multiple_boards_spec.rb +++ b/spec/features/boards/multiple_boards_spec.rb @@ -3,11 +3,11 @@ require 'spec_helper' describe 'Multiple Issue Boards', :js do - set(:user) { create(:user) } - set(:project) { create(:project, :public) } - set(:planning) { create(:label, project: project, name: 'Planning') } - set(:board) { create(:board, name: 'board1', project: project) } - set(:board2) { create(:board, name: 'board2', project: project) } + let_it_be(:user) { create(:user) } + let_it_be(:project) { create(:project, :public) } + let_it_be(:planning) { create(:label, project: project, name: 'Planning') } + let_it_be(:board) { create(:board, name: 'board1', project: project) } + let_it_be(:board2) { create(:board, name: 'board2', project: project) } let(:parent) { project } let(:boards_path) { project_boards_path(project) } diff --git a/spec/features/boards/new_issue_spec.rb b/spec/features/boards/new_issue_spec.rb index 730887370dd..2d41b5d612d 100644 --- a/spec/features/boards/new_issue_spec.rb +++ b/spec/features/boards/new_issue_spec.rb @@ -129,10 +129,10 @@ describe 'Issue Boards new issue', :js do end context 'group boards' do - set(:group) { create(:group, :public) } - set(:project) { create(:project, namespace: group) } - set(:group_board) { create(:board, group: group) } - set(:list) { create(:list, board: group_board, position: 0) } + let_it_be(:group) { create(:group, :public) } + let_it_be(:project) { create(:project, namespace: group) } + let_it_be(:group_board) { create(:board, group: group) } + let_it_be(:list) { create(:list, board: group_board, position: 0) } context 'for unauthorized users' do before do |