Module: CommandTest::CoreExtensions::Kernel

Defined in:
lib/command_test/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#backtick_with_command_test(*args, &block) ⇒ Object



36
37
38
39
40
# File 'lib/command_test/core_extensions.rb', line 36

def backtick_with_command_test(*args, &block)
  (command = args.first) and
    CommandTest.record_interpreted_command(command)
  backtick_without_command_test(*args, &block)
end

#open_with_command_test(*args, &block) ⇒ Object



42
43
44
45
46
# File 'lib/command_test/core_extensions.rb', line 42

def open_with_command_test(*args, &block)
  (command = args.first) && command =~ /\A\|/ and
    CommandTest.record_interpreted_command($')
  open_without_command_test(*args, &block)
end

#system_with_command_test(*args, &block) ⇒ Object



31
32
33
34
# File 'lib/command_test/core_extensions.rb', line 31

def system_with_command_test(*args, &block)
  CommandTest.record_command(*args)
  system_without_command_test(*args, &block)
end