Skip to content

Commit

Permalink
Remove previous results using images
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Stewart committed Dec 18, 2012
1 parent f10cfcc commit 579303c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gitnesse/wiki.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def remove_past_results
def strip_results(content)
if content.match(/\u0060{3}gherkin.*\u0060{3}(.*)/m)[1]
[ "FAILED", "PASSED", "PENDING", "UNDEFINED" ].each do |type|
content.gsub!(/\n*\`Last result was #{type}: .*\n*/, '')
content.gsub!(/\n*\!\[\]\(.*\) \`Last result was #{type}: .*\n*/, '')
end
end
content
Expand Down

0 comments on commit 579303c

Please sign in to comment.