Module: Resilient::Test::CircuitBreakerInterface
- Defined in:
- lib/resilient/test/circuit_breaker_interface.rb
Instance Method Summary collapse
- #test_failure_returns_nothing ⇒ Object
- #test_responds_to_allow_request ⇒ Object
- #test_responds_to_failure ⇒ Object
- #test_responds_to_key ⇒ Object
- #test_responds_to_reset ⇒ Object
- #test_responds_to_success ⇒ Object
- #test_success_returns_nothing ⇒ Object
Instance Method Details
#test_failure_returns_nothing ⇒ Object
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_request ⇒ Object
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_failure ⇒ Object
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_key ⇒ Object
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_reset ⇒ Object
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_success ⇒ Object
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_nothing ⇒ Object
16 17 18 |
# File 'lib/resilient/test/circuit_breaker_interface.rb', line 16 def test_success_returns_nothing assert_nil @object.success end |