Merge pull request #1225 from repotag/follow_renames
Follow page renames in history view. Close #565
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user