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



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

def show(expected, options = {})
  output = options[:output] || :highline
  match  = options[:match]  || :full # :match => [:full | :partial]
  ShowMatcher.new(self, strip_heredoc(expected).strip, output, match).send(:"to_#{output}")
end