blob: 7466e853b651e466dacfceec867d31db8acd71da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Git::Patches::Patch do
let(:patches_folder) { Rails.root.join('spec/fixtures/patchfiles') }
let(:patch_content) do
File.read(File.join(patches_folder, "0001-This-does-not-apply-to-the-feature-branch.patch"))
end
let(:patch) { described_class.new(patch_content) }
describe '#size' do
it 'is correct' do
expect(patch.size).to eq(549.bytes)
end
end
end
|