зеркало из https://github.com/mislav/hub.git
Fix normalization of commit summary in pull request test
https://travis-ci.org/github/hub/builds/38441514
This commit is contained in:
Родитель
44aefe7728
Коммит
0ada3c473e
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче