mirror of
https://github.com/moebooru/moebooru
synced 2025-08-29 04:57:47 +00:00
--HG-- rename : spec/dtext_spec.rb => spec/lib/dtext/dtext_spec.rb rename : spec/helper.rb => spec/lib/dtext/helper.rb rename : tests/another-external-links.html => spec/lib/dtext/tests/another-external-links.html rename : tests/another-external-links.txt => spec/lib/dtext/tests/another-external-links.txt rename : tests/composite-1.html => spec/lib/dtext/tests/composite-1.html rename : tests/composite-1.txt => spec/lib/dtext/tests/composite-1.txt rename : tests/composite-2.html => spec/lib/dtext/tests/composite-2.html rename : tests/composite-2.txt => spec/lib/dtext/tests/composite-2.txt rename : tests/external-link.html => spec/lib/dtext/tests/external-link.html rename : tests/external-link.txt => spec/lib/dtext/tests/external-link.txt rename : tests/header.html => spec/lib/dtext/tests/header.html rename : tests/header.txt => spec/lib/dtext/tests/header.txt rename : tests/line-list.html => spec/lib/dtext/tests/line-list.html rename : tests/line-list.txt => spec/lib/dtext/tests/line-list.txt rename : tests/link-injection.html => spec/lib/dtext/tests/link-injection.html rename : tests/link-injection.txt => spec/lib/dtext/tests/link-injection.txt rename : tests/links.html => spec/lib/dtext/tests/links.html rename : tests/links.txt => spec/lib/dtext/tests/links.txt rename : tests/list.html => spec/lib/dtext/tests/list.html rename : tests/list.txt => spec/lib/dtext/tests/list.txt rename : tests/list2.html => spec/lib/dtext/tests/list2.html rename : tests/list2.txt => spec/lib/dtext/tests/list2.txt
13 lines
214 B
Ruby
13 lines
214 B
Ruby
require File.expand_path('../helper.rb', __FILE__)
|
|
|
|
describe "DText" do
|
|
test = find_test()
|
|
test.each do |t|
|
|
match = t.gsub /\.txt$/, '.html'
|
|
it t do
|
|
p(r(t)).should eq(h(match))
|
|
end
|
|
end
|
|
end
|
|
|