gitlab-org--gitlab-foss/spec/models/timelog_spec.rb

11 lines
243 B
Ruby
Raw Normal View History

require 'rails_helper'
RSpec.describe Timelog, type: :model do
subject { build(:timelog) }
it { is_expected.to be_valid }
it { is_expected.to validate_presence_of(:time_spent) }
it { is_expected.to validate_presence_of(:user) }
end