Class: Bacon::Context

Inherits:
Object
  • Object
show all
Includes:
Pione, Pione::TestHelper::TransformerInterface, Pione::TupleSpace::TupleSpaceInterface
Defined in:
lib/pione/test-helper.rb

Overview

extend bacon's context

Constant Summary

Constants included from Pione

Pione::VERSION

Constants included from Pione::TupleSpace

Pione::TupleSpace::TUPLE

Constants included from Pione::Log::MessageLog

Pione::Log::MessageLog::MESSAGE_QUEUE

Instance Method Summary collapse

Methods included from Pione::TupleSpace::TupleSpaceInterface

#process_log, #processing_error, #set_tuple_space, tuple_space_operation, #tuple_space_server, #with_process_log

Methods included from Pione::TestHelper::TransformerInterface

#transformer_spec

Methods included from Pione::Util::Evaluatable

#val, #val!

Methods included from Pione::TupleSpace

[], from_array, identifiers

Methods included from Pione::Log::MessageLog

#debug_message, #debug_message_begin, #debug_message_end, debug_mode, debug_mode=, debug_mode?, message, quiet_mode, quiet_mode=, quiet_mode?, #show, #user_message, #user_message_begin, #user_message_end

Instance Method Details

#it(desc, &b) ⇒ Object



69
70
71
72
73
74
# File 'lib/pione/test-helper.rb', line 69

def it(desc, &b)
  time = Time.now
  orig_it(desc, &b)
  line = "[%s] %s: %s\n" % [@name, desc, (Time.now - time).round(3)]
  Pione::Global.test_report.append(line)
end

#orig_itObject



68
# File 'lib/pione/test-helper.rb', line 68

alias :orig_it :it