mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Remove single-use ProfileStories
method
This commit is contained in:
parent
cfb8fc6222
commit
146483702a
@ -31,18 +31,6 @@ module ProfileStories
|
||||
bob.update!(role: UserRole.find_by!(name: 'Admin'))
|
||||
end
|
||||
|
||||
def with_alice_as_local_user
|
||||
@alice_bio = '@alice and @bob are fictional characters commonly used as' \
|
||||
'placeholder names in #cryptology, as well as #science and' \
|
||||
'engineering 📖 literature. Not affiliated with @pepe.'
|
||||
|
||||
@alice = Fabricate(
|
||||
:user,
|
||||
email: 'alice@example.com', password: password, confirmed_at: confirmed_at,
|
||||
account: Fabricate(:account, username: 'alice', note: @alice_bio)
|
||||
)
|
||||
end
|
||||
|
||||
def confirmed_at
|
||||
@confirmed_at ||= Time.zone.now
|
||||
end
|
||||
|
@ -11,10 +11,10 @@ RSpec.describe 'Profile' do
|
||||
|
||||
before do
|
||||
as_a_logged_in_user
|
||||
with_alice_as_local_user
|
||||
Fabricate(:user, account: Fabricate(:account, username: 'alice'))
|
||||
end
|
||||
|
||||
it 'I can view Annes public account' do
|
||||
it 'I can view public account page for Alice' do
|
||||
visit account_path('alice')
|
||||
|
||||
expect(subject).to have_title("alice (@alice@#{local_domain})")
|
||||
|
Loading…
Reference in New Issue
Block a user