Skip to content

Commit

Permalink
Merge pull request mizzy#211 from serverspec/fix-custom-failure-message
Browse files Browse the repository at this point in the history
Fix custom failure message duplication
  • Loading branch information
mizzy committed Jul 7, 2013
2 parents 0e4d986 + f518e37 commit 98f1d93
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/serverspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,6 @@ def configuration
end

module RSpec
module Matchers
module DSL
class Matcher
def failure_message_for_should(&block)
message = "#{example.metadata[:command]}\n"
message += "#{example.metadata[:stdout]}"
message
end
def failure_message_for_should_not(&block)
message = "#{example.metadata[:command]}\n"
message += "#{example.metadata[:stdout]}"
message
end
end
end
end
module Core
module Formatters
class BaseTextFormatter < BaseFormatter
Expand Down

0 comments on commit 98f1d93

Please sign in to comment.