diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-21 12:08:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-21 12:08:43 +0300 |
commit | afe057a8ff8546f0032e439a9a200307fb6de86a (patch) | |
tree | 0f6699ac8a4863344f4f4db6500d33ce509e44c5 /spec/services/error_tracking/issue_latest_event_service_spec.rb | |
parent | ab0dd39a49e43f6beed9bdb6414a0f04bcf671b4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/error_tracking/issue_latest_event_service_spec.rb')
-rw-r--r-- | spec/services/error_tracking/issue_latest_event_service_spec.rb | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/spec/services/error_tracking/issue_latest_event_service_spec.rb b/spec/services/error_tracking/issue_latest_event_service_spec.rb index cda15042814..7f53eabd717 100644 --- a/spec/services/error_tracking/issue_latest_event_service_spec.rb +++ b/spec/services/error_tracking/issue_latest_event_service_spec.rb @@ -3,24 +3,7 @@ require 'spec_helper' describe ErrorTracking::IssueLatestEventService do - let_it_be(:user) { create(:user) } - let_it_be(:project) { create(:project) } - - let(:sentry_url) { 'https://sentrytest.gitlab.com/api/0/projects/sentry-org/sentry-project' } - let(:token) { 'test-token' } - let(:result) { subject.execute } - - let(:error_tracking_setting) do - create(:project_error_tracking_setting, api_url: sentry_url, token: token, project: project) - end - - subject { described_class.new(project, user) } - - before do - expect(project).to receive(:error_tracking_setting).at_least(:once).and_return(error_tracking_setting) - - project.add_reporter(user) - end + include_context 'sentry error tracking context' describe '#execute' do context 'with authorized user' do |