diff --git a/README.md b/README.md index ecee5c06..5100bb18 100644 --- a/README.md +++ b/README.md @@ -326,7 +326,7 @@ Initialize the Gollum::Repo object: wiki = Gollum::Wiki.new("my-gollum-repo.git") # => -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") diff --git a/test/helper.rb b/test/helper.rb index 1db68446..f6e01ded 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -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 diff --git a/test/test_wiki.rb b/test/test_wiki.rb index 5b066bc7..458e9621 100644 --- a/test/test_wiki.rb +++ b/test/test_wiki.rb @@ -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