Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !3539

Closed
Created Apr 07, 2013 by Administrator@rootOwner
  • Report abuse
Report abuse

Fix error handling of missing new_issue_url config in url_for_new_issue.

  • Overview 5
  • Commits 1
  • Changes 1

Created by: jrmithdobbs

Found this while digging into test failures in the vagrant environment. gitlabhq/gitlab-vagrant-vm#40

This changes that error from:

1) IssuesHelper url_for_new_issue should return path to external tracker
     Failure/Error: url_for_new_issue.should match(ext_expected)
     NoMethodError:
       undefined method `gsub' for nil:NilClass
     # ./app/helpers/issues_helper.rb:64:in `url_for_new_issue'
     # ./spec/helpers/issues_helper_spec.rb:96:in `block (3 levels) in <top (required)>'

to:

  1) IssuesHelper url_for_new_issue should return path to external tracker
     Failure/Error: let(:issues_url) { Gitlab.config.issues_tracker.redmine.new_issue_url}
     Settingslogic::MissingSetting:
       Missing setting 'new_issue_url' in 'redmine' section in 'issues_tracker' section in /home/vagrant/gitlabhq/config/gitlab.yml
     # ./spec/helpers/issues_helper_spec.rb:81:in `block (3 levels) in <top (required)>'
     # ./spec/helpers/issues_helper_spec.rb:83:in `block (3 levels) in <top (required)>'
     # ./spec/helpers/issues_helper_spec.rb:96:in `block (3 levels) in <top (required)>'

Which is much more helpful in figuring out that there's a config problem. :)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/jrmithdobbs/fix_missing_error_handling-url_for_new_issue