зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-09-04 10:45:51 +03:00
test: Improve tests
Этот коммит содержится в:
10
spec/support/string_clean_multiline.rb
Обычный файл
10
spec/support/string_clean_multiline.rb
Обычный файл
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module StringCleanMultiline
|
||||
refine String do
|
||||
def clean_multiline
|
||||
# Get rid of newlines and indentation spaces
|
||||
strip.gsub(/\s*\n\s*/, "")
|
||||
end
|
||||
end
|
||||
end
|
||||
Ссылка в новой задаче
Block a user