2020-04-22 19:07:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe OpenProjectTrackerData do
|
2020-04-22 19:07:51 +05:30
|
|
|
describe 'Associations' do
|
|
|
|
it { is_expected.to belong_to(:service) }
|
|
|
|
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
|