samhuri.net/test/plugin_test.rb
Sami Samhuri 6eec569358
Rename spec suite to test and remove RSpec-era traces
Move Minitest files from spec/ to test/ and update bake tasks

to discover and run tests from test/**/*_test.rb.

Update README and AGENTS guidance to reference test/ and tests,

and drop the obsolete spec/examples.txt ignore entry.
2026-02-07 21:15:29 -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