about summary refs log tree commit diff
path: root/spec/lib
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-05-24 21:32:53 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-24 14:32:53 +0200
commitf937cad68f5343d114475cf870df2cd25895a7db (patch)
tree256d9623059e15367039c105bed078c119fa51c4 /spec/lib
parentbe83d450eb2d109967f8e92bb3e01225517719d5 (diff)
Skip formatting for cashtag in status text (#3275)
Resolve #3270
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/formatter_spec.rb8
1 files changed, 8 insertions, 0 deletions
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 '<p>Hello world $AAPL</p>'
+      end
+    end
+
     context 'with reblog' do
       let(:local_status) { Fabricate(:status, account: account, reblog: Fabricate(:status, text: 'Hello world', account: account)) }