samhuri.net/test/projects/models_test.rb
Sami Samhuri 007b1058b6
Migrate from Swift to Ruby (#33)
Replace the Swift site generator with a Ruby and Phlex implementation.
Loads site and projects from TOML, derive site metadata from posts.

Migrate from make to bake and add standardrb and code coverage tasks.

Update CI and docs to match the new workflow, and remove unused
assets/dependencies plus obsolete tooling.
2026-02-07 21:19:03 -08:00

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