Class: Caliph::MockShell

Inherits:
Object
  • Object
show all
Defined in:
lib/caliph/testing/mock-command-line.rb

Class Method Summary collapse

Class Method Details

.execute(command_line, *args) ⇒ Object



28
29
30
# File 'lib/caliph/testing/mock-command-line.rb', line 28

def self.execute(command_line, *args)
  execute_string(command_line.string_format)
end

.execute_string(string) ⇒ Object



32
33
34
# File 'lib/caliph/testing/mock-command-line.rb', line 32

def self.execute_string(string)
  fail "Command line executed in specs without 'expect_command' or 'expect_some_commands' (string was: #{string})"
end