summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2014-10-06 17:29:06 +0200
committerMarin Jankovski <maxlazio@gmail.com>2014-10-06 17:29:06 +0200
commit0fed1b587630ff98808c61881511ee7c077c3db6 (patch)
tree8b164d6ac47fb33157952094184eb2f529a41a0c /spec/models
parent0c291f35f5324d159155d16aa632fad412a2d3a3 (diff)
parent31bc42de57b3cfd7bf068df06d15372307b8661b (diff)
downloadgitlab-ce-0fed1b587630ff98808c61881511ee7c077c3db6.tar.gz
Merge pull request #7964 from mr-vinn/task-lists
Add task lists to issues and merge requests
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/issue_spec.rb4
-rw-r--r--spec/models/merge_request_spec.rb4
2 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb
index 8b299cea67c..6b6efe832e5 100644
--- a/spec/models/issue_spec.rb
+++ b/spec/models/issue_spec.rb
@@ -60,4 +60,8 @@ describe Issue do
let(:backref_text) { "issue ##{subject.iid}" }
let(:set_mentionable_text) { ->(txt){ subject.description = txt } }
end
+
+ it_behaves_like 'a Taskable' do
+ let(:subject) { create :issue }
+ end
end
diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb
index c40f75290ed..7b0d261d72f 100644
--- a/spec/models/merge_request_spec.rb
+++ b/spec/models/merge_request_spec.rb
@@ -119,4 +119,8 @@ describe MergeRequest do
let(:backref_text) { "merge request !#{subject.iid}" }
let(:set_mentionable_text) { ->(txt){ subject.title = txt } }
end
+
+ it_behaves_like 'a Taskable' do
+ let(:subject) { create :merge_request, :simple }
+ end
end