mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply syntax_tree formatting to spec/*
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'content_buffer'
|
||||
require "content_buffer"
|
||||
|
||||
RSpec.describe ContentBuffer do
|
||||
|
||||
it "handles deletion across lines properly" do
|
||||
c = ContentBuffer.new("a\nbc\nc")
|
||||
c.apply_transform!(start: { row: 0, col: 0 }, finish: { col: 1, row: 1 }, operation: :delete)
|
||||
@@ -26,5 +25,4 @@ RSpec.describe ContentBuffer do
|
||||
c.apply_transform!(start: { row: 0, col: 5 }, operation: :insert, text: "\nworld")
|
||||
expect(c.to_s).to eq("hello\nworld!")
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user