generate_rspec_test
Generate an RSpec spec: real expectations from {input, expected|throws} cases, pending examples for described cases, optional contexts
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"className": "<className>",
"methodName": "<methodName>"
},
"name": "generate_rspec_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contexts | No | ||
| className | Yes | ||
| testCases | No | Test cases. Either a description string (generated as a pending test) or {name, input: [args...], expected} / {name, input, throws: true | "message"} for a real assertion. | |
| methodName | Yes |