Skip to content

Fix bin/console and quiet core_setup spec output - #230

Merged
OutlawAndy merged 2 commits into
masterfrom
fix/console-loads-rails
Nov 24, 2026
Merged

OutlawAndy merged 2 commits into
masterfrom
fix/console-loads-rails

Conversation

@OutlawAndy

Copy link
Copy Markdown
Member
  • bin/console crashed with NameError: uninitialized constant Rails before IRB opened. lib/rolemodel/engine.rb subclasses ::Rails::Engine without loading Rails. Host apps and spec_helper load Rails first, which hid the bug. The engine now does require 'rails'. (rails/engine alone isn't enough on Rails 8.1, because it needs ActiveSupport loaded first.) A new spec requires the gem in a separate process, so spec_helper can't hide it again.
  • "Installing agent skills for the rolemodel_rails utilities" printed during rspec runs. The core_setup spec calls install_agent_skills directly instead of through run_generator, which captures output. It now stubs say alongside install_skill.

Verified: bin/console opens IRB with Rolemodel::VERSION available, and both changed spec files pass. Locally, 6 yarn package.json specs fail under bin/ci both with and without this change (a sandbox network issue), so CI is the real check.

🤖 Generated with Claude Code

OutlawAndy and others added 2 commits November 23, 2026 18:41
bin/console, and any plain `require 'rolemodel-rails'`, raised
NameError on ::Rails::Engine. Host apps and spec_helper load Rails first,
which hid it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The spec calls install_agent_skills directly instead of through
run_generator, so its status line printed during rspec runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OutlawAndy
OutlawAndy merged commit deffd73 into master Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant