forked from glitch-soc/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restore fancy profile to non-alice profile where it belongs
- Loading branch information
1 parent
a6e07a0
commit 323748b
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
module ProfileStories | ||
attr_reader :bob, :alice, :alice_bio, :alice_css | ||
attr_reader :bob, :alice, :alice_bio, :chupacabra, :chupacabra_css | ||
|
||
def fill_in_auth_details(email, password) | ||
fill_in 'user_email', with: email | ||
|
@@ -35,16 +35,25 @@ 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_css = <<~CSS | ||
|
||
@alice = Fabricate( | ||
:user, | ||
email: '[email protected]', password: password, confirmed_at: confirmed_at, | ||
account: Fabricate(:account, username: 'alice', note: @alice_bio) | ||
) | ||
end | ||
|
||
def with_chupacabras_fancy_profile | ||
@chupacabra_css = <<~CSS | ||
body { | ||
background-color: red !important; | ||
} | ||
CSS | ||
|
||
@alice = Fabricate( | ||
@chupacabra = Fabricate( | ||
:user, | ||
email: 'alice@example.com', password: password, confirmed_at: confirmed_at, | ||
account: Fabricate(:account, username: 'alice', note: @alice_bio, account_css: @alice_css) | ||
email: 'chupacabra@example.com', password: password, confirmed_at: confirmed_at, | ||
account: Fabricate(:account, username: 'chupacabra', note: 'I am gonna getcha!', account_css: @chupacabra_css) | ||
) | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters