summaryrefslogtreecommitdiff
path: root/spec/models/merge_request_diff_file_spec.rb
blob: 7276f5b5061d472ff4620d4ba8069dcbedec1293 (plain)
1
2
3
4
5
6
7
8
9
10
11
require 'rails_helper'

describe MergeRequestDiffFile, type: :model do
  describe '#utf8_diff' do
    it 'does not raise error when a hash value is in binary' do
      subject.diff = "\x05\x00\x68\x65\x6c\x6c\x6f"

      expect { subject.utf8_diff }.not_to raise_error
    end
  end
end