diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
commit | 8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch) | |
tree | a77e7fe7a93de11213032ed4ab1f33a3db51b738 /spec/features/sentry_js_spec.rb | |
parent | 00b35af3db1abfe813a778f643dad221aad51fca (diff) |
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'spec/features/sentry_js_spec.rb')
-rw-r--r-- | spec/features/sentry_js_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/sentry_js_spec.rb b/spec/features/sentry_js_spec.rb index b39c4f0a0ae..1d277ba7b3c 100644 --- a/spec/features/sentry_js_spec.rb +++ b/spec/features/sentry_js_spec.rb @@ -2,8 +2,8 @@ require 'spec_helper' -describe 'Sentry' do - let(:sentry_path) { '/sentry.chunk.js' } +RSpec.describe 'Sentry' do + let(:sentry_regex_path) { '\/sentry.*\.chunk\.js' } it 'does not load sentry if sentry is disabled' do allow(Gitlab.config.sentry).to receive(:enabled).and_return(false) @@ -22,7 +22,7 @@ describe 'Sentry' do def has_requested_sentry page.all('script', visible: false).one? do |elm| - elm[:src] =~ /#{sentry_path}$/ + elm[:src] =~ /#{sentry_regex_path}$/ end end end |