summaryrefslogtreecommitdiff
path: root/spec/models/timelog_spec.rb
blob: f08935b64254c7154702f9ca767c0ba2f913e1c3 (plain)
1
2
3
4
5
6
7
8
9
10
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