Class: AtlasRb::Reset
- Inherits:
-
Object
- Object
- AtlasRb::Reset
- Extended by:
- FaradayHelper
- Defined in:
- lib/atlas_rb.rb
Overview
Test-environment helper that wipes Atlas state via GET /reset.
Do not call against production. This exists so RSpec suites running against a disposable Atlas instance can return to a clean baseline between examples.
Class Method Summary collapse
-
.clean ⇒ String?
Reset the connected Atlas instance to a clean state.
Methods included from FaradayHelper
Class Method Details
.clean ⇒ String?
Reset the connected Atlas instance to a clean state.
83 84 85 |
# File 'lib/atlas_rb.rb', line 83 def self.clean connection({}).get("/reset")&.body end |