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