diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-20 12:11:26 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-20 12:14:25 +0300 |
commit | 323d328c8644e3ff01b806f7754d33c0c7dedd7b (patch) | |
tree | 69b6a3d67aabd2437d9970285c15fd4cb70a01c9 /spec/lib/gitlab/gfm | |
parent | 802b28e04ab15f1750f20c188302f172cef6ccf6 (diff) |
Rename reference unfolder to rewriter, minor refactorings
Diffstat (limited to 'spec/lib/gitlab/gfm')
-rw-r--r-- | spec/lib/gitlab/gfm/reference_rewriter_spec.rb (renamed from spec/lib/gitlab/gfm/reference_unfolder_spec.rb) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/gfm/reference_unfolder_spec.rb b/spec/lib/gitlab/gfm/reference_rewriter_spec.rb index 2e3b77d9180..db7bee110af 100644 --- a/spec/lib/gitlab/gfm/reference_unfolder_spec.rb +++ b/spec/lib/gitlab/gfm/reference_rewriter_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Gitlab::Gfm::ReferenceUnfolder do +describe Gitlab::Gfm::ReferenceRewriter do let(:text) { 'some text' } let(:old_project) { create(:project) } let(:new_project) { create(:project) } @@ -8,9 +8,9 @@ describe Gitlab::Gfm::ReferenceUnfolder do before { old_project.team << [user, :guest] } - describe '#unfold' do + describe '#rewrite' do subject do - described_class.new(text, old_project, user).unfold(new_project) + described_class.new(text, old_project, user).rewrite(new_project) end context 'multiple issues and merge requests referenced' do |