about summary refs log tree commit diff
path: root/spec/helpers/statuses_helper_spec.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-12-15 12:56:43 +0100
committerGitHub <noreply@github.com>2020-12-15 12:56:43 +0100
commit1f564051b6b447e3663852c482982b3ff5a2f238 (patch)
tree97e9d7b5d77971e1ad9013247e4c64b1c3a3b58d /spec/helpers/statuses_helper_spec.rb
parent1045549f85041b13002801808b30a332c3a68c61 (diff)
Change RTL detection to rely on unicode-bidi paragraph by paragraph (#14573)
Diffstat (limited to 'spec/helpers/statuses_helper_spec.rb')
-rw-r--r--spec/helpers/statuses_helper_spec.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/helpers/statuses_helper_spec.rb b/spec/helpers/statuses_helper_spec.rb
index 940ff072e..cba659bfb 100644
--- a/spec/helpers/statuses_helper_spec.rb
+++ b/spec/helpers/statuses_helper_spec.rb
@@ -149,22 +149,4 @@ RSpec.describe StatusesHelper, type: :helper do
       expect(css_class).to eq 'h-cite'
     end
   end
-
-  describe '#rtl?' do
-    it 'is false if text is empty' do
-      expect(helper).not_to be_rtl ''
-    end
-
-    it 'is false if there are no right to left characters' do
-      expect(helper).not_to be_rtl 'hello world'
-    end
-
-    it 'is false if right to left characters are fewer than 1/3 of total text' do
-      expect(helper).not_to be_rtl 'hello ݟ world'
-    end
-
-    it 'is true if right to left characters are greater than 1/3 of total text' do
-      expect(helper).to be_rtl 'aaݟaaݟ'
-    end
-  end
 end