From f937cad68f5343d114475cf870df2cd25895a7db Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Wed, 24 May 2017 21:32:53 +0900 Subject: Skip formatting for cashtag in status text (#3275) Resolve #3270 --- spec/lib/formatter_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec') diff --git a/spec/lib/formatter_spec.rb b/spec/lib/formatter_spec.rb index 1db7f0bc9..2e0f11110 100644 --- a/spec/lib/formatter_spec.rb +++ b/spec/lib/formatter_spec.rb @@ -46,6 +46,14 @@ RSpec.describe Formatter do end end + context 'with cashtag' do + let(:local_text) { 'Hello world $AAPL' } + + it 'skip cashtag' do + expect(subject).to match '

Hello world $AAPL

' + end + end + context 'with reblog' do let(:local_status) { Fabricate(:status, account: account, reblog: Fabricate(:status, text: 'Hello world', account: account)) } -- cgit