Module: EM::MiniTest::Spec::ClassMethods
- Defined in:
- lib/em/minitest/spec.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#it(*args, &block) ⇒ Object
:nodoc:.
Instance Method Details
#it(*args, &block) ⇒ Object
:nodoc:
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/em/minitest/spec.rb', line 86 def it *args, &block # :nodoc: return super unless block_given? super do @wait = false EM.run do @timeout = EM.add_timer(timeout_interval) do flunk "test timed out!" end instance_eval(&block) done! unless @wait end end end |