Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix tests

  • Loading branch information...
commit e0494a6321a9ed8c4e826e0099648f58d9eebef1 1 parent 45a300c
@technoweenie technoweenie authored
Showing with 4 additions and 2 deletions.
  1. +3 −1 test/helper.rb
  2. +1 −1  test/test_markup.rb
View
4 test/helper.rb
@@ -54,5 +54,7 @@ def self.setup(&block) define_method(:setup, &block) end
def self.teardown(&block) define_method(:teardown, &block) end
end
(class << klass; self end).send(:define_method, :name) { name.gsub(/\W/,'_') }
+ $contexts << klass
klass.class_eval &block
-end
+end
+$contexts = []
View
2  test/test_markup.rb
@@ -173,7 +173,7 @@
@wiki.write_page("Potato", :mediawiki, "a [[Potato|Potato Heaad]] ", commit_details)
page = @wiki.page("Potato")
output = page.formatted_data
- assert_equal "<p>\na <a class=\"internal present\" href=\"/Potato\">Potato Heaad</a> \n</p>", output
+ assert_equal "<p>\na <a class=\"internal present\" href=\"/Potato\">Potato Heaad</a> </p>", output
end
#########################################################################
Please sign in to comment.
Something went wrong with that request. Please try again.