summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-04-10 11:51:02 +0200
committerGitHub <noreply@github.com>2021-04-10 11:51:02 +0200
commit7183d9a113f67bb6b0f21bd2b3ba2f0d94b6134c (patch)
treed9f95b9c182bf4438a9ab21814c13347ef498aff /spec
parentb3e9094e14e0ed693173c66d3826d2d52a67a725 (diff)
Change multiple mentions with same username to render with domain (#15718)
Fix #15506
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/tag_manager_spec.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/spec/lib/tag_manager_spec.rb b/spec/lib/tag_manager_spec.rb
index e9a7aa93441..2230f971037 100644
--- a/spec/lib/tag_manager_spec.rb
+++ b/spec/lib/tag_manager_spec.rb
@@ -83,40 +83,4 @@ RSpec.describe TagManager do
expect(TagManager.instance.local_url?('https://domainn.test/')).to eq false
end
end
-
- describe '#same_acct?' do
- # The following comparisons MUST be case-insensitive.
-
- it 'returns true if the needle has a correct username and domain for remote user' do
- expect(TagManager.instance.same_acct?('username@domain.test', 'UsErNaMe@DoMaIn.Test')).to eq true
- end
-
- it 'returns false if the needle is missing a domain for remote user' do
- expect(TagManager.instance.same_acct?('username@domain.test', 'UsErNaMe')).to eq false
- end
-
- it 'returns false if the needle has an incorrect domain for remote user' do
- expect(TagManager.instance.same_acct?('username@domain.test', 'UsErNaMe@incorrect.test')).to eq false
- end
-
- it 'returns false if the needle has an incorrect username for remote user' do
- expect(TagManager.instance.same_acct?('username@domain.test', 'incorrect@DoMaIn.test')).to eq false
- end
-
- it 'returns true if the needle has a correct username and domain for local user' do
- expect(TagManager.instance.same_acct?('username', 'UsErNaMe@Cb6E6126.nGrOk.Io')).to eq true
- end
-
- it 'returns true if the needle is missing a domain for local user' do
- expect(TagManager.instance.same_acct?('username', 'UsErNaMe')).to eq true
- end
-
- it 'returns false if the needle has an incorrect username for local user' do
- expect(TagManager.instance.same_acct?('username', 'UsErNaM@Cb6E6126.nGrOk.Io')).to eq false
- end
-
- it 'returns false if the needle has an incorrect domain for local user' do
- expect(TagManager.instance.same_acct?('username', 'incorrect@Cb6E6126.nGrOk.Io')).to eq false
- end
- end
end