diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-30 17:27:33 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-30 17:27:33 -0400 |
commit | 84a7675ea69b8bbd3e95a94fbcfad716daa77b36 (patch) | |
tree | 36b4bd7fdbabd9f27733669414ffc06f6dd1402b /spec/helpers | |
parent | 242bebc13483c281af8bd2e0e9f6d7346997481e (diff) | |
download | gitlab-ce-84a7675ea69b8bbd3e95a94fbcfad716daa77b36.tar.gz |
Remove title_for_issue helper
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/issues_helper_spec.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/helpers/issues_helper_spec.rb b/spec/helpers/issues_helper_spec.rb index 54dd8d4aa64..c08ddb4cae1 100644 --- a/spec/helpers/issues_helper_spec.rb +++ b/spec/helpers/issues_helper_spec.rb @@ -5,24 +5,6 @@ describe IssuesHelper do let(:issue) { create :issue, project: project } let(:ext_project) { create :redmine_project } - describe "title_for_issue" do - it "should return issue title if used internal tracker" do - @project = project - expect(title_for_issue(issue.iid)).to eq issue.title - end - - it "should always return empty string if used external tracker" do - @project = ext_project - expect(title_for_issue(rand(100))).to eq "" - end - - it "should always return empty string if project nil" do - @project = nil - - expect(title_for_issue(rand(100))).to eq "" - end - end - describe "url_for_project_issues" do let(:project_url) { ext_project.external_issue_tracker.project_url } let(:ext_expected) do |