mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 17:51:39 -05:00
20 lines
457 B
Ruby
20 lines
457 B
Ruby
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
|
|
)
|
|
end
|
|
end
|
|
end
|