Simulate 'git show' when a single version is posted from /history/ (#1543)

This commit is contained in:
Watal M. Iwasaki
2020-04-16 19:50:45 +09:00
committed by GitHub
parent c8f856109d
commit ba575b886d
6 changed files with 29 additions and 7 deletions
+6 -1
View File
@@ -965,10 +965,15 @@ context 'Frontend with base path' do
post '/wiki/gollum/compare/Bilbo-Baggins.md', :versions => ['f25eccd98e9b667f9e22946f3e2f945378b8a72d']
follow_redirect!
assert last_response.ok?
assert_equal '/wiki/gollum/compare/Bilbo-Baggins.md/b0d108328459e44fff4a76cd19b10ddc34adce4b...f25eccd98e9b667f9e22946f3e2f945378b8a72d', last_request.fullpath
post '/wiki/gollum/compare/Bilbo-Baggins.md', :versions => []
follow_redirect!
assert last_response.ok?
assert_equal '/wiki/gollum/history/Bilbo-Baggins.md', last_request.fullpath
end
def app
Precious::MapGollum.new(@base_path)
end
end
end