mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 12:05:07 +01:00
Fix spec
This commit is contained in:
parent
4c92f15664
commit
667ffafef8
@ -5,8 +5,8 @@ en:
|
||||
about_this: About this instance
|
||||
apps: Apps
|
||||
business_email: 'Business e-mail:'
|
||||
contact: Contact
|
||||
closed_registrations: Registrations are currently closed on this instance.
|
||||
contact: Contact
|
||||
description_headline: What is %{domain}?
|
||||
domain_count_after: other instances
|
||||
domain_count_before: Connected to
|
||||
|
@ -45,8 +45,9 @@ RSpec.describe User, type: :model do
|
||||
expect(User.confirmed).to match_array([user_2])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
let(:account) { Fabricate(:account, username: 'alice') }
|
||||
let(:account) { Fabricate(:account, username: 'alice') }
|
||||
let(:password) { 'abcd1234' }
|
||||
|
||||
describe 'blacklist' do
|
||||
@ -55,7 +56,7 @@ RSpec.describe User, type: :model do
|
||||
|
||||
expect(user.valid?).to be_truthy
|
||||
end
|
||||
|
||||
|
||||
it 'should not allow a blacklisted user to be created' do
|
||||
user = User.new(email: 'foo@mvrht.com', account: account, password: password)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user