]> cat aescling's git repositories - mastodon.git/commitdiff
Add test
authorClaire <claire.github-309c@sitedethib.com>
Tue, 24 May 2022 08:26:04 +0000 (10:26 +0200)
committersingle-right-quote <11325618-aescling@users.noreply.gitlab.com>
Fri, 27 May 2022 03:54:56 +0000 (23:54 -0400)
spec/lib/advanced_text_formatter_spec.rb

index ea1a9570d0ce0e6dce1e3b69761870efff7448cd..3255fc9271ae79daafe72cc265a535075e9296c3 100644 (file)
@@ -40,6 +40,10 @@ RSpec.describe AdvancedTextFormatter do
         it 'formats code using <pre> and <code>' do
           is_expected.to include '<pre><code>int main'
         end
+
+        it 'does not strip leading spaces' do
+          is_expected.to include '>  return 0'
+        end
       end
 
       context 'given some quote' do