mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
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.
23 lines
651 B
Ruby
23 lines
651 B
Ruby
require "test_helper"
|
|
|
|
class Pressa::PluginTest < Minitest::Test
|
|
def test_setup_requires_subclass_implementation
|
|
plugin = Pressa::Plugin.new
|
|
|
|
error = assert_raises(NotImplementedError) do
|
|
plugin.setup(site: Object.new, source_path: "/tmp/source")
|
|
end
|
|
|
|
assert_match(/Pressa::Plugin#setup must be implemented/, error.message)
|
|
end
|
|
|
|
def test_render_requires_subclass_implementation
|
|
plugin = Pressa::Plugin.new
|
|
|
|
error = assert_raises(NotImplementedError) do
|
|
plugin.render(site: Object.new, target_path: "/tmp/target")
|
|
end
|
|
|
|
assert_match(/Pressa::Plugin#render must be implemented/, error.message)
|
|
end
|
|
end
|