Commit 34741e93 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Just use repository would fix the test

parent ca685f80
...@@ -245,11 +245,8 @@ feature 'Task Lists' do ...@@ -245,11 +245,8 @@ feature 'Task Lists' do
visit project_merge_request_path(project, merge) visit project_merge_request_path(project, merge)
end end
before do
allow_any_instance_of(Repository).to receive(:write_ref)
end
describe 'multiple tasks' do describe 'multiple tasks' do
let(:project) { create(:project, :repository) }
let!(:merge) { create(:merge_request, :simple, description: markdown, author: user, source_project: project) } let!(:merge) { create(:merge_request, :simple, description: markdown, author: user, source_project: project) }
it 'renders for description' do it 'renders for description' do
......
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