chinwagsocial/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
2019-07-24 14:19:17 +02:00
..
admin
concerns Remove Atom feeds and old URLs in the form of GET /:username/updates/:id (#11247) 2019-07-07 16:16:51 +02:00
form Improve admin page (#4121) 2017-07-18 16:38:22 +02:00
web
account_conversation_spec.rb Add conversations API (#8832) 2018-10-07 23:44:58 +02:00
account_domain_block_spec.rb
account_filter_spec.rb Redesign admin accounts index (#9340) 2018-11-26 15:53:27 +01:00
account_moderation_note_spec.rb Lint pass (#8876) 2018-10-04 12:36:53 +02:00
account_spec.rb Don't delete periods when validating username uniqueness (#11392) (#11400) 2019-07-24 14:19:17 +02:00
account_stat_spec.rb Extract counters from accounts table to account_stats table (#9295) 2018-11-19 00:43:52 +01:00
account_tag_stat_spec.rb Add specs for AccountTagStat model (#9452) 2018-12-07 16:37:56 +01:00
backup_spec.rb
block_spec.rb Cover Block more (#3837) 2017-06-19 11:31:37 +02:00
conversation_mute_spec.rb Lint pass (#8876) 2018-10-04 12:36:53 +02:00
conversation_spec.rb
custom_emoji_category_spec.rb Add categories for custom emojis (#11196) 2019-06-28 15:54:10 +02:00
custom_emoji_filter_spec.rb Add specs for CustomEmojiFilter (#9599) 2018-12-21 18:52:57 +01:00
custom_emoji_spec.rb
custom_filter_spec.rb
domain_block_spec.rb Change domain blocks to automatically support subdomains (#11138) 2019-06-22 00:13:10 +02:00
email_domain_block_spec.rb
export_spec.rb
favourite_spec.rb
featured_tag_spec.rb
follow_request_spec.rb Store URIs of follows, follow requests and blocks for ActivityPub (#7160) 2018-05-04 21:14:34 +02:00
follow_spec.rb
home_feed_spec.rb
identity_spec.rb
import_spec.rb Validate data of Imports (#4782) 2017-09-02 20:45:42 +02:00
invite_spec.rb Add consumable invites (#5814) 2017-11-27 16:07:59 +01:00
list_account_spec.rb
list_spec.rb Lint pass (#8876) 2018-10-04 12:36:53 +02:00
media_attachment_spec.rb
mention_spec.rb add more tests to models 2017-04-05 00:29:56 +02:00
mute_spec.rb
notification_spec.rb
poll_spec.rb Add polls (#10111) 2019-03-03 22:18:23 +01:00
poll_vote_spec.rb
preview_card_spec.rb Lint pass (#8876) 2018-10-04 12:36:53 +02:00
relay_spec.rb
remote_follow_spec.rb Lint pass (#8876) 2018-10-04 12:36:53 +02:00
report_filter_spec.rb
report_spec.rb
scheduled_status_spec.rb Add scheduled statuses (#9706) 2019-01-05 12:43:28 +01:00
session_activation_spec.rb
setting_spec.rb Isolate each specs for cache store (#6450) 2018-02-17 22:35:05 +01:00
site_upload_spec.rb Add a test for SiteUpload#cache_key (#5685) 2017-11-14 20:44:11 +01:00
status_pin_spec.rb
status_spec.rb Remove deprecated REST API GET /api/v1/timelines/direct (#11212) 2019-07-05 02:14:56 +02:00
status_stat_spec.rb
tag_spec.rb Disallow numeric-only hashtags (#11363) 2019-07-19 23:22:35 +02:00
user_invite_request_spec.rb Add "why do you want to join" field to invite requests (#10524) 2019-04-09 23:06:30 +09:00
user_spec.rb Change unconfirmed user login behaviour (#11375) 2019-07-22 10:48:50 +02:00