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

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

require 'spec_helper'

RSpec.describe OpenProjectTrackerData do
  describe 'associations' do
    it { is_expected.to belong_to(:integration) }
  end

  describe 'closed_status_id' do
    it 'returns the set value' do
      expect(build(:open_project_tracker_data).closed_status_id).to eq('15')
    end

    it 'returns the default value if not set' do
      expect(build(:open_project_tracker_data, closed_status_id: nil).closed_status_id).to eq('13')
    end
  end
end