Module: EndpointStub
- Defined in:
- lib/endpoint_stub.rb,
lib/endpoint_stub/version.rb
Defined Under Namespace
Classes: Config
Constant Summary collapse
- VERSION =
"1.4.5"
Class Method Summary collapse
-
.activate! ⇒ Object
Enable endpoint stubbing.
-
.deactivate! ⇒ Object
Disable endpoint stubbing.
-
.refresh! ⇒ Object
Calls deactivate, clears all stubs, then re-activates.
Class Method Details
.activate! ⇒ Object
Enable endpoint stubbing. This will cause all HTTP requests to raise an error, as per WebMock, unless relating to an ActiveResource model.
17 18 19 20 |
# File 'lib/endpoint_stub.rb', line 17 def self.activate! WebMock.enable! Config.activated = true end |