From 02ea67eece64926f666eca239f1e7a926d3e4764 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 3 Mar 2014 13:14:11 -0500 Subject: [PATCH] BUGFIX: A MDTest was conflicting with BBCode support for upper case --- test/javascripts/mdtest/fixtures/Links, inline style.text | 2 +- test/javascripts/mdtest/fixtures/Links, inline style.xhtml | 2 +- test/javascripts/mdtest/mdtest.js.erb | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/javascripts/mdtest/fixtures/Links, inline style.text b/test/javascripts/mdtest/fixtures/Links, inline style.text index aba96583517..ad5f021fce9 100755 --- a/test/javascripts/mdtest/fixtures/Links, inline style.text +++ b/test/javascripts/mdtest/fixtures/Links, inline style.text @@ -1,4 +1,4 @@ -Just a [URL](/url/). +Just a [LINK](/url/). [URL and title](/url/ "title"). diff --git a/test/javascripts/mdtest/fixtures/Links, inline style.xhtml b/test/javascripts/mdtest/fixtures/Links, inline style.xhtml index aca7a2a4ad2..2d5a29ff25f 100755 --- a/test/javascripts/mdtest/fixtures/Links, inline style.xhtml +++ b/test/javascripts/mdtest/fixtures/Links, inline style.xhtml @@ -1,4 +1,4 @@ -

Just a URL.

+

Just a LINK.

URL and title.

diff --git a/test/javascripts/mdtest/mdtest.js.erb b/test/javascripts/mdtest/mdtest.js.erb index c68cdabebca..b5d7c8632ee 100644 --- a/test/javascripts/mdtest/mdtest.js.erb +++ b/test/javascripts/mdtest/mdtest.js.erb @@ -5,7 +5,7 @@ module("MDTest", { }); // This is cheating, but the trivial differences between sanitization -// do not affect formatting. +// do not affect formatting. function normalize(str) { return str.replace(/\n\s*/g, ''). replace(/ \/\>/g, '/>'). @@ -33,7 +33,6 @@ test("first", function(){ }); <% - def mdtest_suite result = "" Dir.glob("#{Rails.root}/test/javascripts/mdtest/fixtures/*.text").each do |f| @@ -47,7 +46,6 @@ test("first", function(){ end result end - %> <%= mdtest_suite %>