Commit 1f22f70b authored by Rémy Coutable's avatar Rémy Coutable

[EE] Reduce the diff with CE in spec/helpers/merge_requests_helper_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 3d22029c
# frozen_string_literal: true
require 'spec_helper'
describe MergeRequestsHelper do
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
end
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe MergeRequestsHelper do describe MergeRequestsHelper do
...@@ -44,20 +46,6 @@ describe MergeRequestsHelper do ...@@ -44,20 +46,6 @@ describe MergeRequestsHelper do
end end
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 describe '#tab_link_for' do
let(:merge_request) { create(:merge_request, :simple) } let(:merge_request) { create(:merge_request, :simple) }
let(:options) { Hash.new } let(:options) { Hash.new }
......
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