BigW Consortium Gitlab

last_owner_cannot_leave_group_spec.rb 380 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
require 'spec_helper'

feature 'Groups > Members > Last owner cannot leave group', feature: true do
  let(:owner) { create(:user) }
  let(:group) { create(:group) }

  background do
    group.add_owner(owner)
    login_as(owner)
    visit group_path(group)
  end

13 14
  scenario 'user does not see a "Leave group" link' do
    expect(page).not_to have_content 'Leave group'
15 16
  end
end