Minor readme typo and various whitespace fixups.
This commit is contained in:
@@ -326,7 +326,7 @@ Initialize the Gollum::Repo object:
|
||||
wiki = Gollum::Wiki.new("my-gollum-repo.git")
|
||||
# => <Gollum::Wiki>
|
||||
|
||||
By default, internal wiki links are all absolute from the root. To specify a different base path, you can send specify the `:base_path` option:
|
||||
By default, internal wiki links are all absolute from the root. To specify a different base path, you can specify the `:base_path` option:
|
||||
|
||||
wiki = Gollum::Wiki.new("my-gollum-repo.git", :base_path => "/wiki")
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ def context(*args, &block)
|
||||
return super unless (name = args.first) && block
|
||||
require 'test/unit'
|
||||
klass = Class.new(defined?(ActiveSupport::TestCase) ? ActiveSupport::TestCase : Test::Unit::TestCase) do
|
||||
def self.test(name, &block)
|
||||
def self.test(name, &block)
|
||||
define_method("test_#{name.gsub(/\W/,'_')}", &block) if block
|
||||
end
|
||||
def self.xtest(*args) end
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ context "Wiki" do
|
||||
test "list pages" do
|
||||
pages = @wiki.pages
|
||||
assert_equal \
|
||||
%w(Bilbo-Baggins.md Eye-Of-Sauron.md Home.textile My-Precious.md),
|
||||
%w(Bilbo-Baggins.md Eye-Of-Sauron.md Home.textile My-Precious.md),
|
||||
pages.map { |p| p.filename }.sort
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user