fix tests

This commit is contained in:
rick
2011-03-10 11:06:18 -08:00
parent 45a300c6bc
commit e0494a6321
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -54,5 +54,7 @@ def context(*args, &block)
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 = []
+1 -1
View File
@@ -173,7 +173,7 @@ context "Markup" do
@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
#########################################################################