Class: RSpec::Matchers::DSL::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/serverspec.rb

Instance Method Summary collapse

Instance Method Details

#failure_message_for_should(&block) ⇒ Object



50
51
52
53
54
# File 'lib/serverspec.rb', line 50

def failure_message_for_should(&block)
  message =  "#{example.[:command]}\n"
  message += "#{example.[:stdout]}"
  message
end

#failure_message_for_should_not(&block) ⇒ Object



55
56
57
58
59
# File 'lib/serverspec.rb', line 55

def failure_message_for_should_not(&block)
  message =  "#{example.[:command]}\n"
  message += "#{example.[:stdout]}"
  message
end