From b16b69350eb4ded2e1011931433b51dac5e34b53 Mon Sep 17 00:00:00 2001 From: unarist Date: Wed, 21 Jun 2017 01:45:09 +0900 Subject: Fix RTL detection on Ruby side (#3867) This fixes below bugs: * pipe characters being counted as RTL character * only first word being checked --- spec/helpers/stream_entries_helper_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/helpers/stream_entries_helper_spec.rb') diff --git a/spec/helpers/stream_entries_helper_spec.rb b/spec/helpers/stream_entries_helper_spec.rb index 1ef49a3ab..2c0d7b239 100644 --- a/spec/helpers/stream_entries_helper_spec.rb +++ b/spec/helpers/stream_entries_helper_spec.rb @@ -217,7 +217,7 @@ RSpec.describe StreamEntriesHelper, type: :helper do end it 'is true if right to left characters are greater than 1/3 of total text' do - expect(helper).to be_rtl 'aaݟ' + expect(helper).to be_rtl 'aaݟaaݟ' end end end -- cgit