mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-07 04:06:13 +00:00
18 lines
400 B
Ruby
18 lines
400 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe LoginActivity do
|
|
it_behaves_like 'BrowserDetection'
|
|
|
|
describe 'Associations' do
|
|
it { is_expected.to belong_to(:user).required }
|
|
end
|
|
|
|
describe 'Validations' do
|
|
subject { Fabricate.build :login_activity }
|
|
|
|
it { is_expected.to define_enum_for(:authentication_method).backed_by_column_of_type(:string) }
|
|
end
|
|
end
|