mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
15 lines
382 B
Ruby
15 lines
382 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe Track, type: :model do
|
|
describe 'validations' do
|
|
it { is_expected.to validate_presence_of(:path) }
|
|
it { is_expected.to validate_presence_of(:started_at) }
|
|
it { is_expected.to validate_presence_of(:ended_at) }
|
|
end
|
|
|
|
describe 'associations' do
|
|
it { is_expected.to belong_to(:user) }
|
|
end
|
|
end
|