Commit d432e077 authored by Phil Hughes's avatar Phil Hughes

Updated tests for creating with board

parent 19b8437b
...@@ -3,12 +3,14 @@ require 'rails_helper' ...@@ -3,12 +3,14 @@ require 'rails_helper'
describe 'Issue Boards', feature: true, js: true do describe 'Issue Boards', feature: true, js: true do
include WaitForAjax include WaitForAjax
let(:project) { create(:project) } let(:project) { create(:project_with_board) }
let(:user) { create(:user) } let(:user) { create(:user) }
let!(:user2) { create(:user) } let!(:user2) { create(:user) }
let!(:board) { Boards::CreateService.new(project, user).execute }
before do before do
create(:backlog_list, board: project.board)
create(:done_list, board: project.board)
project.team << [user, :master] project.team << [user, :master]
project.team << [user2, :master] project.team << [user2, :master]
login_as(user) login_as(user)
......
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