diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-06-11 10:42:09 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-06-11 10:42:09 +0000 |
commit | ea8dc107729c06bbc15bfba21dd249611c376a19 (patch) | |
tree | a4ac618b527519eeb592c20fd8944c8faf5cc8a9 /spec/lib/gitlab/git/pre_receive_error_spec.rb | |
parent | 8742af1e585593221d99d5345d083734b99adf74 (diff) | |
download | gitlab-ce-ea8dc107729c06bbc15bfba21dd249611c376a19.tar.gz |
Don't use Gitlab::Utils.nlbr in Gitlab::Git
Diffstat (limited to 'spec/lib/gitlab/git/pre_receive_error_spec.rb')
-rw-r--r-- | spec/lib/gitlab/git/pre_receive_error_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/gitlab/git/pre_receive_error_spec.rb b/spec/lib/gitlab/git/pre_receive_error_spec.rb new file mode 100644 index 00000000000..1b8be62dec6 --- /dev/null +++ b/spec/lib/gitlab/git/pre_receive_error_spec.rb @@ -0,0 +1,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 |