You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/spec/models
Rey Tucker 94f5c714f1 Don't delete periods when validating username uniqueness (#11392) (#11400)
* Check to make sure usernames with '.' cannot be created

* Add test for instance actor account name conflicts

This makes sure that migration 20190715164535_add_instance_actor
won't fail if there's already an account that is named the same
as the domain (minus the .)

* Put the test into the correct context...

* Add another test to split this into two validations

* Don't delete periods when validating username uniqueness (#11392)

The 20190715164535_add_instance_actor migration fails if there's
already a username similar to the domain name, e.g. if you are
'vulpine.club' and have a user named 'vulpineclub', validation
fails.

Upon further review, usernames with periods are dropped by the
regular expression in the Account class, so we don't need to
worry about it here.

Fixes #11392
6 years ago
..
admin Add a spec for Admin::ActionLog (#9775) 6 years ago
concerns Remove Atom feeds and old URLs in the form of `GET /:username/updates/:id` (#11247) 6 years ago
form
web
account_conversation_spec.rb
account_domain_block_spec.rb
account_filter_spec.rb
account_moderation_note_spec.rb
account_spec.rb Don't delete periods when validating username uniqueness (#11392) (#11400) 6 years ago
account_stat_spec.rb
account_tag_stat_spec.rb
backup_spec.rb
block_spec.rb
conversation_mute_spec.rb
conversation_spec.rb
custom_emoji_category_spec.rb Add categories for custom emojis (#11196) 6 years ago
custom_emoji_filter_spec.rb
custom_emoji_spec.rb
custom_filter_spec.rb
domain_block_spec.rb Change domain blocks to automatically support subdomains (#11138) 6 years ago
email_domain_block_spec.rb
export_spec.rb Export and import show_reblogs together with following list (#10495) 6 years ago
favourite_spec.rb
featured_tag_spec.rb Add featured hashtags to profiles (#9755) 6 years ago
follow_request_spec.rb
follow_spec.rb
home_feed_spec.rb
identity_spec.rb
import_spec.rb
invite_spec.rb
list_account_spec.rb
list_spec.rb
media_attachment_spec.rb
mention_spec.rb
mute_spec.rb
notification_spec.rb
poll_spec.rb Add polls (#10111) 6 years ago
poll_vote_spec.rb Add polls (#10111) 6 years ago
preview_card_spec.rb
relay_spec.rb
remote_follow_spec.rb
report_filter_spec.rb
report_spec.rb
scheduled_status_spec.rb Add scheduled statuses (#9706) 6 years ago
session_activation_spec.rb
setting_spec.rb
site_upload_spec.rb
status_pin_spec.rb
status_spec.rb Remove deprecated REST API `GET /api/v1/timelines/direct` (#11212) 6 years ago
status_stat_spec.rb
tag_spec.rb Disallow numeric-only hashtags (#11363) 6 years ago
user_invite_request_spec.rb Add "why do you want to join" field to invite requests (#10524) 6 years ago
user_spec.rb Change unconfirmed user login behaviour (#11375) 6 years ago