mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
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.
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
|