summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/git/pre_receive_error_spec.rb
blob: 1b8be62dec6a235f5292d23094eb79d3d8daaff7 (plain)
1
2
3
4
5
6
7
8
9
require 'spec_helper'

describe Gitlab::Git::PreReceiveError do
  it 'makes its message HTML-friendly' do
    ex = described_class.new("hello\nworld\n")

    expect(ex.message).to eq('hello<br>world<br>')
  end
end