mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
23 lines
511 B
Ruby
23 lines
511 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe Import, type: :model do
|
|
describe 'associations' do
|
|
it { is_expected.to have_many(:points).dependent(:destroy) }
|
|
it { is_expected.to belong_to(:user) }
|
|
end
|
|
|
|
describe 'enums' do
|
|
it do
|
|
is_expected.to define_enum_for(:source).with_values(
|
|
google_semantic_history: 0,
|
|
owntracks: 1,
|
|
google_records: 2,
|
|
google_phone_takeout: 3,
|
|
gpx: 4,
|
|
immich_api: 5
|
|
)
|
|
end
|
|
end
|
|
end
|