Welcome to mirror list, hosted at ThFree Co, Russian Federation.

timelog_spec.rb « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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