Ruby SDK
The official Ruby SDK for Mokra mock servers and MockWorld Tests.Installation
Configuration
Environment variables
Authentication styles
Mock Servers
Basic usage
Once configured, HTTP calls are automatically intercepted:Direct HTTP calls
MockWorld Tests
Creating a world
Running code
Observing
Asserting
Accessing state
Seeding
Service mappings
Example: RSpec integration
API Reference
mockworld(name:, services:)
Creates a new MockWorld.
| Parameter | Type | Description |
|---|---|---|
name | String | Name for the world (for logging) |
services | Array | Services to include |