Module: BlueShell::Matchers

Defined in:
lib/blue-shell/matchers.rb,
lib/blue-shell/matchers/output_matcher.rb,
lib/blue-shell/matchers/exit_code_matcher.rb

Defined Under Namespace

Classes: ExitCodeMatcher, OutputMatcher

Instance Method Summary collapse

Instance Method Details

#have_exited_with(expected_code) ⇒ Object Also known as: have_exit_code, exit_with



9
10
11
# File 'lib/blue-shell/matchers.rb', line 9

def have_exited_with(expected_code)
  ExitCodeMatcher.new(expected_code)
end

#say(expected_output) ⇒ Object Also known as: have_output



3
4
5
# File 'lib/blue-shell/matchers.rb', line 3

def say(expected_output)
  OutputMatcher.new(expected_output)
end