Extract EE specific files/lines for Create spec/helpers

We have the following files containing EE specific code. We should move them to ee/

spec/helpers/issuables_helper_spec.rb
diff --git a/spec/helpers/issuables_helper_spec.rb b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/helpers/issuables_helper_spec.rb
index 8b82dea2524..ec1f61dab37 100644
--- a/spec/helpers/issuables_helper_spec.rb
+++ b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/helpers/issuables_helper_spec.rb
@@ -176,7 +176,7 @@ describe IssuablesHelper do
       stub_commonmark_sourcepos_disabled
     end
 
-    it 'returns the correct json for an issue' do
+    it 'returns the correct data for an issue' do
       issue = create(:issue, author: user, description: 'issue text')
       @project = issue.project
 
@@ -185,6 +185,7 @@ describe IssuablesHelper do
         updateEndpoint: "/#{@project.full_path}/issues/#{issue.iid}.json",
         canUpdate: true,
         canDestroy: true,
+        canAdmin: true,
         issuableRef: "##{issue.iid}",
         markdownPreviewPath: "/#{@project.full_path}/preview_markdown",
         markdownDocsPath: '/help/user/markdown',
spec/helpers/merge_requests_helper_spec.rb
diff --git a/spec/helpers/merge_requests_helper_spec.rb b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/helpers/merge_requests_helper_spec.rb
index 885204062fe..17a5a0a7e9b 100644
--- a/spec/helpers/merge_requests_helper_spec.rb
+++ b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/spec/helpers/merge_requests_helper_spec.rb
@@ -44,6 +44,20 @@ describe MergeRequestsHelper do
     end
   end
 
+  describe '#render_items_list' do
+    it "returns one item in the list" do
+      expect(render_items_list(["user"])).to eq("user")
+    end
+
+    it "returns two items in the list" do
+      expect(render_items_list(%w(user user1))).to eq("user and user1")
+    end
+
+    it "returns three items in the list" do
+      expect(render_items_list(%w(user user1 user2))).to eq("user, user1 and user2")
+    end
+  end
+
   describe '#tab_link_for' do
     let(:merge_request) { create(:merge_request, :simple) }
     let(:options) { Hash.new }
Edited Mar 01, 2019 by Douwe Maan
Assignee Loading
Time tracking Loading