<command-name>/model</command-name> <command-message>model</command-message>…
- User
/model model
- User
Refactor the test such that there is no top-level notification. The instance of notification should be instanciated as close as possible to the SUT.
Assistant· claude-opus-4-8
I'll start by invoking the RSpec skill since this is a spec refactor, and find the relevant test file.
Assistant· claude-opus-4-8
The notification is the SUT here, so the fix is to push
let(:notification)down from the top level into each context that uses it — right next to the examples. Several contexts already override it locally; I'll give the remaining ones their own locallet.Assistant· claude-opus-4-8
Now let me run the spec to confirm everything passes.
Assistant· claude-opus-4-8
All 12 examples pass. The top-level
let(:notification)is gone; each context now constructs the notification (the SUT) immediately above the example that uses it, matching the contexts that already overrode it locally.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.