BigW Consortium Gitlab

owner_cannot_leave_project_spec.rb 324 Bytes
Newer Older
1 2
require 'spec_helper'

3
feature 'Projects > Members > Owner cannot leave project' do
4
  let(:project) { create(:project) }
5 6

  background do
7
    sign_in(project.owner)
8
    visit project_path(project)
9 10
  end

11 12
  scenario 'user does not see a "Leave project" link' do
    expect(page).not_to have_content 'Leave project'
13 14
  end
end