mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-13 02:36:36 -05:00
15 lines
351 B
Ruby
15 lines
351 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe Marker do
|
|
describe 'Associations' do
|
|
it { is_expected.to belong_to(:user) }
|
|
end
|
|
|
|
describe 'Validations' do
|
|
it { is_expected.to validate_presence_of(:timeline) }
|
|
it { is_expected.to validate_inclusion_of(:timeline).in_array(described_class::TIMELINES) }
|
|
end
|
|
end
|