2020-03-27 08:07:43 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2021-05-27 05:10:32 -04:00
|
|
|
RSpec.describe Integrations::OpenProjectTrackerData do
|
2021-05-12 08:10:24 -04:00
|
|
|
describe 'associations' do
|
|
|
|
it { is_expected.to belong_to(:integration) }
|
2020-03-27 08:07:43 -04:00
|
|
|
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
|