diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2018-03-16 13:35:03 +0000 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2018-03-16 13:35:03 +0000 |
commit | c1e3942122eab23734e102d5690ae94d8a702881 (patch) | |
tree | 650e1bea33ccaba343745a65cd0fc459bfea2770 /spec/services/lfs | |
parent | 9d32fccfa77effd52f40a0783ca4ce8caccde8de (diff) | |
download | gitlab-ce-c1e3942122eab23734e102d5690ae94d8a702881.tar.gz |
Extract constant for LfsPointerFile::VERSION_LINE
Diffstat (limited to 'spec/services/lfs')
-rw-r--r-- | spec/services/lfs/file_transformer_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/lfs/file_transformer_spec.rb b/spec/services/lfs/file_transformer_spec.rb index 00c5328a3a0..e8938338cb7 100644 --- a/spec/services/lfs/file_transformer_spec.rb +++ b/spec/services/lfs/file_transformer_spec.rb @@ -53,7 +53,7 @@ describe Lfs::FileTransformer do it 'returns an LFS pointer' do result = subject.new_file(file_path, file_content) - expect(result.content).to start_with('version https://git-lfs.github.com/spec/v1') + expect(result.content).to start_with(Gitlab::Git::LfsPointerFile::VERSION_LINE) end it 'returns LFS pointer encoding as text' do @@ -68,7 +68,7 @@ describe Lfs::FileTransformer do it "doesn't create LFS pointers" do new_content = subject.new_file(file_path, file_content).content - expect(new_content).not_to start_with('version https://git-lfs.github.com/spec/v1') + expect(new_content).not_to start_with(Gitlab::Git::LfsPointerFile::VERSION_LINE) expect(new_content).to eq(file_content) end end |