Commit 2f50246e authored by Sean McGivern's avatar Sean McGivern

Resolve spec/models/project_wiki_spec.rb

parent 6bbad934
...@@ -220,19 +220,11 @@ describe ProjectWiki do ...@@ -220,19 +220,11 @@ describe ProjectWiki do
before do before do
subject.wiki # Make sure the wiki repo exists subject.wiki # Make sure the wiki repo exists
<<<<<<< HEAD
repo_path = Gitlab::GitalyClient::StorageSettings.allow_disk_access do repo_path = Gitlab::GitalyClient::StorageSettings.allow_disk_access do
subject.repository.path_to_repo subject.repository.path_to_repo
end end
=======
repo_path = Gitlab::GitalyClient::StorageSettings.allow_disk_access do
subject.repository.path_to_repo
end
>>>>>>> upstream/master
BareRepoOperations.new(repo_path).commit_file(image, 'image.png') BareRepoOperations.new(repo_path).commit_file(image, 'image.png')
end end
...@@ -249,19 +241,11 @@ describe ProjectWiki do ...@@ -249,19 +241,11 @@ describe ProjectWiki do
file = subject.find_file('image.png') file = subject.find_file('image.png')
expect(file).to be_a Gitlab::Git::WikiFile expect(file).to be_a Gitlab::Git::WikiFile
end end
<<<<<<< HEAD
it 'returns the whole file' do
file = subject.find_file('image.png')
image.rewind
=======
it 'returns the whole file' do it 'returns the whole file' do
file = subject.find_file('image.png') file = subject.find_file('image.png')
image.rewind image.rewind
>>>>>>> upstream/master
expect(file.raw_data.b).to eq(image.read.b) expect(file.raw_data.b).to eq(image.read.b)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment