Commit 58ec54b6 authored by Sean Arnold's avatar Sean Arnold

Make subjects explicit

parent eff9d44d
......@@ -5,6 +5,8 @@ require 'spec_helper'
describe ErrorTracking::IssueDetailsService do
include_context 'sentry error tracking context'
subject { described_class.new(project, user) }
describe '#execute' do
context 'with authorized user' do
context 'when issue_details returns a detailed error' do
......
......@@ -5,6 +5,8 @@ require 'spec_helper'
describe ErrorTracking::IssueLatestEventService do
include_context 'sentry error tracking context'
subject { described_class.new(project, user) }
describe '#execute' do
context 'with authorized user' do
context 'when issue_latest_event returns an error event' do
......
......@@ -9,8 +9,6 @@ shared_context 'sentry error tracking context' do
let(:params) { {} }
let(:result) { subject.execute }
subject { described_class.new(project, user, params) }
let(:error_tracking_setting) do
create(:project_error_tracking_setting, api_url: sentry_url, token: token, project: project)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment