Skip to content

Run the acceptance specs in rake acceptance - #61

Merged
bastelfreak merged 1 commit into
voxpupuli:mainfrom
miharp:acceptance-specs
Oct 6, 2026
Merged

bastelfreak merged 1 commit into
voxpupuli:mainfrom
miharp:acceptance-specs

Conversation

@miharp

@miharp miharp commented Oct 6, 2026

Copy link
Copy Markdown

Summary

rake acceptance ran spec/unit/**/*.rb, so the "Run acceptance tests" step in CI ran the unit specs a second time and spec/acceptance never ran. This points the task at spec/acceptance/**/*_spec.rb and fixes the two specs that went stale while they were not running.

  • Rakefile: the acceptance pattern is now spec/acceptance/**/*_spec.rb.
  • generate_markdown_spec.rb: the expected Markdown no longer ends with a blank line. The output has not had one since (bug) Normalize markdown output whitespace and trailing newline #49.
  • running_strings_generate_spec.rb: the enum tag expectation no longer requires a newline before </div>. YARD 0.9.40 added a built-in Markdown renderer, HybridMarkdown, which is preferred over redcarpet and leaves that newline out. The gemspec allows any yard ~> 0.9, so the expectation now matches the part both renderers produce.
  • spec/spec_helper_acceptance_local.rb is deleted. Nothing has loaded it since Litmus was removed in f135335, and it calls Litmus's run_shell.

Additional Context

Run locally on Ruby 3.4.8 with openvox 9.0.0:

Command YARD Result
bundle exec rake acceptance 0.9.45 13 examples, 0 failures, 2 pending
bundle exec rspec spec/acceptance 0.9.37 13 examples, 0 failures, 2 pending
bundle exec rake 0.9.45 299 examples, 0 failures, 3 pending
bundle exec rake rubocop no offenses

The 2 pending acceptance examples were already marked skip.

The README's acceptance section is being updated separately in #60.

Related Issues (if any)

Fixes #59

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.

Assisted by Claude.

The acceptance task's pattern pointed at spec/unit, so CI ran the unit
specs twice and never ran spec/acceptance. Point it at spec/acceptance.

Two acceptance specs had gone stale while they were not running:

- The Markdown expectation ended with a blank line that the output has
  not had since voxpupuli#49 normalized trailing newlines.
- The enum tag expectation required a newline before </div>. YARD
  0.9.40 added a built-in Markdown renderer that is preferred over
  redcarpet and omits it. Match the part both renderers produce.

Also remove spec/spec_helper_acceptance_local.rb. Nothing has loaded it
since Litmus was removed, and it calls Litmus's run_shell.

Fixes voxpupuli#59

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Michael Harp <mike@mikeharp.com>
@bastelfreak
bastelfreak merged commit 6a7ead5 into voxpupuli:main Oct 6, 2026
6 checks passed
@miharp
miharp deleted the acceptance-specs branch October 6, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rake acceptance runs the unit specs, so the acceptance specs never run in CI

2 participants