Class: Cog::SpecHelpers::Invocation
- Inherits:
-
Object
- Object
- Cog::SpecHelpers::Invocation
- Defined in:
- lib/code_node/spec_helpers/runner.rb
Instance Method Summary collapse
-
#exec(&block) ⇒ Object
Redefine exec for testing code_node.
Instance Method Details
#exec(&block) ⇒ Object
Redefine exec for testing code_node
16 17 18 19 20 21 |
# File 'lib/code_node/spec_helpers/runner.rb', line 16 def exec(&block) ENV['COG_TOOLS'] = File. File.join(File.dirname(__FILE__), '..', 'cog_tool.rb') Open3.popen3 *@cmd do |i,o,e,t| block.call i,o,e end end |