mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
15 lines
404 B
Ruby
15 lines
404 B
Ruby
require "test_helper"
|
|
|
|
class Pressa::Projects::ModelsTest < Minitest::Test
|
|
def test_project_helpers_compute_paths
|
|
project = Pressa::Projects::Project.new(
|
|
name: "demo",
|
|
title: "Demo",
|
|
description: "Demo project",
|
|
url: "https://github.com/samsonjs/demo"
|
|
)
|
|
|
|
assert_equal("samsonjs/demo", project.github_path)
|
|
assert_equal("/projects/demo", project.path)
|
|
end
|
|
end
|