Module: WIP::Runner::Spec::Helpers::Matchers

Defined in:
lib/wip/runner/spec/helpers/matchers.rb

Defined Under Namespace

Classes: ShowMatcher

Instance Method Summary collapse

Instance Method Details

#show(expected, options = {}) ⇒ Object

TODO: fix the following message: expected block to not STDCOMBINED to receive the following content (partial match):, but output “- VARIABLE: |value from ENV|nnecho $VARIABLEnn> value from user”



6
7
8
9
10
# File 'lib/wip/runner/spec/helpers/matchers.rb', line 6

def show(expected, options = {})
  stream = options[:to]    || :combined # :to    => [:out | :err]
  match  = options[:match] || :full     # :match => [:full | :partial]
  ShowMatcher.new(self, strip_heredoc(expected).strip, stream, match)
end