diff options
Diffstat (limited to 'spec/models/time_tracking')
-rw-r--r-- | spec/models/time_tracking/timelog_category_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/time_tracking/timelog_category_spec.rb b/spec/models/time_tracking/timelog_category_spec.rb index d8b938e9d68..ac2fb651134 100644 --- a/spec/models/time_tracking/timelog_category_spec.rb +++ b/spec/models/time_tracking/timelog_category_spec.rb @@ -7,6 +7,10 @@ RSpec.describe TimeTracking::TimelogCategory, type: :model do it { is_expected.to belong_to(:namespace).with_foreign_key('namespace_id') } end + describe 'default values' do + it { expect(described_class.new.color).to eq(described_class::DEFAULT_COLOR) } + end + describe 'validations' do subject { create(:timelog_category) } |