Fix normalization of commit summary in pull request test

https://travis-ci.org/github/hub/builds/38441514
This commit is contained in:
Mislav Marohnić 2014-10-19 23:58:49 +02:00
Родитель 44aefe7728
Коммит 0ada3c473e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -253,7 +253,7 @@ end
Given(/^the SHAs and timestamps are normalized in "([^"]+)"$/) do |file|
in_current_dir do
contents = File.read(file)
contents.gsub!(/[0-9a-f]{7} \(Hub, \d seconds ago\)/, "SHA1SHA (Hub, 0 seconds ago)")
contents.gsub!(/[0-9a-f]{7} \(Hub, \d seconds? ago\)/, "SHA1SHA (Hub, 0 seconds ago)")
File.open(file, "w") { |f| f.write(contents) }
end
end