Welcome to mirror list, hosted at ThFree Co, Russian Federation.

error_event.rb « error_tracking « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 44c127e7bf57cff1b3a7d8ac6eb0ea4ef015953f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

FactoryBot.define do
  factory :error_tracking_error_event, class: Gitlab::ErrorTracking::ErrorEvent do
    issue_id { 'id' }
    date_received { Time.now.iso8601 }
    stack_trace_entries do
      {
        'stacktrace' =>
          {
            'frames' => [{ 'file' => 'test.rb' }]
          }
      }
    end

    skip_create
  end
end