summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-08-11 20:21:32 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-08-11 20:21:32 +0800
commit34741e932742c426896955f357f6b406bfd1d6f2 (patch)
tree4e57d8c3efb28095e7a09bb9197111881a97f122 /spec
parentca685f80e0fffa60827fe0da7cff1192cef701de (diff)
downloadgitlab-ce-34741e932742c426896955f357f6b406bfd1d6f2.tar.gz
Just use repository would fix the test
Diffstat (limited to 'spec')
-rw-r--r--spec/features/task_lists_spec.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/features/task_lists_spec.rb b/spec/features/task_lists_spec.rb
index 81d86d249fd..580258f77eb 100644
--- a/spec/features/task_lists_spec.rb
+++ b/spec/features/task_lists_spec.rb
@@ -245,11 +245,8 @@ feature 'Task Lists' do
visit project_merge_request_path(project, merge)
end
- before do
- allow_any_instance_of(Repository).to receive(:write_ref)
- end
-
describe 'multiple tasks' do
+ let(:project) { create(:project, :repository) }
let!(:merge) { create(:merge_request, :simple, description: markdown, author: user, source_project: project) }
it 'renders for description' do