Module: ApiClients
- Included in:
- TestHeaders
- Defined in:
- lib/stitches/spec/api_clients.rb
Instance Method Summary collapse
Instance Method Details
#api_client(options = { name: "test" }) ⇒ Object
2 3 4 |
# File 'lib/stitches/spec/api_clients.rb', line 2 def api_client( = { name: "test" }) ::ApiClient.where(name: [:name]).first or ::ApiClient.create!(name: [:name]).reload end |