2014-06-13 08:38:10 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe MergeRequestsHelper do
|
|
|
|
describe :issues_sentence do
|
|
|
|
subject { issues_sentence(issues) }
|
|
|
|
let(:issues) do
|
|
|
|
[build(:issue, iid: 1), build(:issue, iid: 2), build(:issue, iid: 3)]
|
|
|
|
end
|
|
|
|
|
2015-02-12 13:17:35 -05:00
|
|
|
it { is_expected.to eq('#1, #2, and #3') }
|
2014-06-13 08:38:10 -04:00
|
|
|
end
|
|
|
|
end
|