Merge pull request #1225 from repotag/follow_renames

Follow page renames in history view. Close #565
This commit is contained in:
Dawa Ometto
2017-04-13 19:59:59 +02:00
committed by GitHub
4 changed files with 20 additions and 1 deletions
+9
View File
@@ -4,6 +4,15 @@ require File.expand_path(File.join(File.dirname(__FILE__), "helper"))
context "Precious::Helpers" do
include Precious::Helpers
test "return git adapter" do
if defined?(Gollum::GIT_ADAPTER)
result = Gollum::GIT_ADAPTER
else
Gollum::GIT_ADAPTER = result = 'grit'
end
assert_equal result, git_adapter
end
test "extracting paths from URLs" do
assert_nil extract_path('Eye-Of-Sauron')
assert_equal 'Mordor', extract_path('Mordor/Sauron')