blob: d6e8b8ac4b2ad0015f3ad937bff8b52fbe3330db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require 'spec_helper'
describe Gitlab::Diff::InlineDiffMarkdownMarker, lib: true do
describe '#mark' do
let(:raw) { "abc 'def'" }
let(:inline_diffs) { [2..5] }
let(:subject) { described_class.new(raw).mark(inline_diffs, mode: :deletion) }
it 'marks the range' do
expect(subject).to eq("ab{-c 'd-}ef'")
expect(subject).to be_html_safe
end
end
end
|