gitlab-org--gitlab-foss/spec/models/timelog_spec.rb
2017-01-15 11:10:04 -05:00

10 lines
243 B
Ruby

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