debian-mirror-gitlab/spec/models/integrations/open_project_tracker_data_spec.rb

20 lines
515 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
require 'spec_helper'
2021-09-04 01:27:46 +05:30
RSpec.describe Integrations::OpenProjectTrackerData do
2021-06-08 01:23:25 +05:30
describe 'associations' do
it { is_expected.to belong_to(:integration) }
2020-04-22 19:07:51 +05:30
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