Module: Logux::Test

Defined in:
lib/logux/test.rb,
lib/logux/test/store.rb,
lib/logux/test/helpers.rb,
lib/logux/test/matchers.rb,
lib/logux/test/matchers/base.rb,
lib/logux/test/matchers/send_to_logux.rb,
lib/logux/test/matchers/response_chunks.rb

Defined Under Namespace

Modules: Client, Helpers, Matchers Classes: Store

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.http_requests_enabledObject

Returns the value of attribute http_requests_enabled.



6
7
8
# File 'lib/logux/test.rb', line 6

def http_requests_enabled
  @http_requests_enabled
end

Class Method Details

.enable_http_requests!Object

Raises:

  • (ArgumentError)


8
9
10
11
12
13
14
15
16
17
# File 'lib/logux/test.rb', line 8

def enable_http_requests!
  raise ArgumentError unless block_given?

  begin
    self.http_requests_enabled = true
    yield
  ensure
    self.http_requests_enabled = false
  end
end