17 lines
379 B
Ruby
17 lines
379 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe 'Projects > Members > Owner cannot request access to their own project' do
|
|
let(:project) { create(:project) }
|
|
|
|
before do
|
|
sign_in(project.owner)
|
|
visit project_path(project)
|
|
end
|
|
|
|
it 'owner does not see the request access button' do
|
|
expect(page).not_to have_content 'Request Access'
|
|
end
|
|
end
|