2016-08-24 12:49:21 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
feature 'Projects > Members > Owner cannot leave project', feature: true do
|
|
|
|
let(:project) { create(:project) }
|
|
|
|
|
|
|
|
background do
|
2016-11-03 12:29:30 +05:30
|
|
|
login_as(project.owner)
|
2016-08-24 12:49:21 +05:30
|
|
|
visit namespace_project_path(project.namespace, project)
|
|
|
|
end
|
|
|
|
|
|
|
|
scenario 'user does not see a "Leave Project" link' do
|
|
|
|
expect(page).not_to have_content 'Leave Project'
|
|
|
|
end
|
|
|
|
end
|