diff options
Diffstat (limited to 'spec/features/projects/issues/viewing_issues_with_external_authorization_enabled_spec.rb')
-rw-r--r-- | spec/features/projects/issues/viewing_issues_with_external_authorization_enabled_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/projects/issues/viewing_issues_with_external_authorization_enabled_spec.rb b/spec/features/projects/issues/viewing_issues_with_external_authorization_enabled_spec.rb index b423543dc33..3d40bae8544 100644 --- a/spec/features/projects/issues/viewing_issues_with_external_authorization_enabled_spec.rb +++ b/spec/features/projects/issues/viewing_issues_with_external_authorization_enabled_spec.rb @@ -41,7 +41,7 @@ RSpec.describe 'viewing an issue with cross project references' do let(:issue) do create(:issue, project: project, - description: description_referencing_other_issue ) + description: description_referencing_other_issue) end let(:confidential_issue) do @@ -102,8 +102,8 @@ RSpec.describe 'viewing an issue with cross project references' do it 'shows only the link to the cross project references' do visit project_issue_path(project, issue) - expect(page).to have_link("#{other_issue.to_reference(project)}") - expect(page).to have_link("#{other_merge_request.to_reference(project)}") + expect(page).to have_link(other_issue.to_reference(project).to_s) + expect(page).to have_link(other_merge_request.to_reference(project).to_s) expect(page).not_to have_content("#{other_issue.to_reference(project)} (#{other_issue.state})") expect(page).not_to have_xpath("//a[@title='#{other_issue.title}']") expect(page).not_to have_content("#{other_merge_request.to_reference(project)} (#{other_merge_request.state})") @@ -113,7 +113,7 @@ RSpec.describe 'viewing an issue with cross project references' do it 'does not link a cross project confidential issue if the user does not have access' do visit project_issue_path(project, issue) - expect(page).not_to have_link("#{other_confidential_issue.to_reference(project)}") + expect(page).not_to have_link(other_confidential_issue.to_reference(project).to_s) expect(page).not_to have_xpath("//a[@title='#{other_confidential_issue.title}']") end @@ -122,7 +122,7 @@ RSpec.describe 'viewing an issue with cross project references' do visit project_issue_path(project, issue) - expect(page).to have_link("#{other_confidential_issue.to_reference(project)}") + expect(page).to have_link(other_confidential_issue.to_reference(project).to_s) expect(page).not_to have_xpath("//a[@title='#{other_confidential_issue.title}']") end |