Module: Resilient::Test::MetricsInterface
- Defined in:
- lib/resilient/test/metrics_interface.rb
Instance Method Summary collapse
- #test_failure_returns_nothing ⇒ Object
- #test_reset_returns_nothing ⇒ Object
- #test_responds_to_failure ⇒ Object
- #test_responds_to_reset ⇒ Object
- #test_responds_to_success ⇒ Object
- #test_responds_to_under_error_threshold_percentage_predicate ⇒ Object
- #test_responds_to_under_request_volume_threshold_predicate ⇒ Object
- #test_success_returns_nothing ⇒ Object
Instance Method Details
#test_failure_returns_nothing ⇒ Object
26 27 28 |
# File 'lib/resilient/test/metrics_interface.rb', line 26 def test_failure_returns_nothing assert_nil @object.failure end |
#test_reset_returns_nothing ⇒ Object
34 35 36 |
# File 'lib/resilient/test/metrics_interface.rb', line 34 def test_reset_returns_nothing assert_nil @object.reset end |
#test_responds_to_failure ⇒ Object
22 23 24 |
# File 'lib/resilient/test/metrics_interface.rb', line 22 def test_responds_to_failure assert_respond_to @object, :failure end |
#test_responds_to_reset ⇒ Object
30 31 32 |
# File 'lib/resilient/test/metrics_interface.rb', line 30 def test_responds_to_reset assert_respond_to @object, :reset end |
#test_responds_to_success ⇒ Object
14 15 16 |
# File 'lib/resilient/test/metrics_interface.rb', line 14 def test_responds_to_success assert_respond_to @object, :success end |
#test_responds_to_under_error_threshold_percentage_predicate ⇒ Object
9 10 11 12 |
# File 'lib/resilient/test/metrics_interface.rb', line 9 def test_responds_to_under_error_threshold_percentage_predicate assert_respond_to @object, :under_error_threshold_percentage? assert_equal 1, @object.method(:under_error_threshold_percentage?).arity end |
#test_responds_to_under_request_volume_threshold_predicate ⇒ Object
4 5 6 7 |
# File 'lib/resilient/test/metrics_interface.rb', line 4 def test_responds_to_under_request_volume_threshold_predicate assert_respond_to @object, :under_request_volume_threshold? assert_equal 1, @object.method(:under_request_volume_threshold?).arity end |
#test_success_returns_nothing ⇒ Object
18 19 20 |
# File 'lib/resilient/test/metrics_interface.rb', line 18 def test_success_returns_nothing assert_nil @object.success end |