31 lines
1.1 KiB
Ruby
31 lines
1.1 KiB
Ruby
# /to-issues routing wiring (issue #16): spec-slice output honors the
|
|
# tracker key. Post-ADR-0042, one tracker holds both state and specs — no
|
|
# second "planka default" destination exists anymore.
|
|
require_relative "test_helper"
|
|
|
|
class IssuesRoutingTest < Minitest::Test
|
|
def test_forgejo_tracker_routes_spec_slices_to_git_issues
|
|
assert_equal :git_issues, Backlog::Tracker.issues_destination("forgejo:jared/cc-os")
|
|
end
|
|
|
|
def test_github_tracker_routes_spec_slices_to_git_issues
|
|
assert_equal :git_issues, Backlog::Tracker.issues_destination("github:jared/some-repo")
|
|
end
|
|
|
|
def test_repo_tracker_routes_spec_slices_to_repo_files
|
|
assert_equal :repo_files, Backlog::Tracker.issues_destination("repo:docs/issues")
|
|
end
|
|
|
|
def test_absent_tracker_is_unrouted
|
|
assert_equal :unrouted, Backlog::Tracker.issues_destination(nil)
|
|
end
|
|
|
|
def test_retired_planka_tracker_is_unrouted
|
|
assert_equal :unrouted, Backlog::Tracker.issues_destination("planka:cc-os")
|
|
end
|
|
|
|
def test_invalid_tracker_is_unrouted
|
|
assert_equal :unrouted, Backlog::Tracker.issues_destination("jira:whatever")
|
|
end
|
|
end
|