Module: Resilient::Test::CircuitBreakerInterface

Defined in:
lib/resilient/test/circuit_breaker_interface.rb

Instance Method Summary collapse

Instance Method Details

#test_failure_returns_nothingObject



24
25
26
# File 'lib/resilient/test/circuit_breaker_interface.rb', line 24

def test_failure_returns_nothing
  assert_nil @object.failure
end

#test_responds_to_allow_requestObject



8
9
10
# File 'lib/resilient/test/circuit_breaker_interface.rb', line 8

def test_responds_to_allow_request
  assert_respond_to @object, :allow_request?
end

#test_responds_to_failureObject



20
21
22
# File 'lib/resilient/test/circuit_breaker_interface.rb', line 20

def test_responds_to_failure
  assert_respond_to @object, :failure
end

#test_responds_to_keyObject



4
5
6
# File 'lib/resilient/test/circuit_breaker_interface.rb', line 4

def test_responds_to_key
  assert_respond_to @object, :key
end

#test_responds_to_resetObject



28
29
30
# File 'lib/resilient/test/circuit_breaker_interface.rb', line 28

def test_responds_to_reset
  assert_respond_to @object, :reset
end

#test_responds_to_successObject



12
13
14
# File 'lib/resilient/test/circuit_breaker_interface.rb', line 12

def test_responds_to_success
  assert_respond_to @object, :success
end

#test_success_returns_nothingObject



16
17
18
# File 'lib/resilient/test/circuit_breaker_interface.rb', line 16

def test_success_returns_nothing
  assert_nil @object.success
end