2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
describe 'Projects > Members > Owner cannot request access to their own project' do
|
2016-08-24 12:49:21 +05:30
|
|
|
let(:project) { create(:project) }
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
before do
|
2017-09-10 17:25:29 +05:30
|
|
|
sign_in(project.owner)
|
|
|
|
visit project_path(project)
|
2016-08-24 12:49:21 +05:30
|
|
|
end
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
it 'owner does not see the request access button' do
|
2016-08-24 12:49:21 +05:30
|
|
|
expect(page).not_to have_content 'Request Access'
|
|
|
|
end
|
|
|
|
end
|