samhuri.net/test/plugin_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

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