2016-08-17 15:04:08 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
feature 'Issues List' do
|
|
|
|
let(:user) { create(:user) }
|
2017-08-02 15:55:11 -04:00
|
|
|
let(:project) { create(:project) }
|
2016-08-17 15:04:08 -04:00
|
|
|
|
|
|
|
background do
|
|
|
|
project.team << [user, :developer]
|
|
|
|
|
2017-06-21 19:44:10 -04:00
|
|
|
sign_in(user)
|
2016-08-17 15:04:08 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
scenario 'user does not see create new list button' do
|
|
|
|
create(:issue, project: project)
|
|
|
|
|
2017-07-06 12:20:50 -04:00
|
|
|
visit project_issues_path(project)
|
2016-08-17 15:04:08 -04:00
|
|
|
|
|
|
|
expect(page).not_to have_selector('.js-new-board-list')
|
|
|
|
end
|
|
|
|
end
|