2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-28 20:47:42 +00:00
moebooru/test/models/dtext_test.rb

16 lines
289 B
Ruby
Raw Normal View History

2014-12-05 11:19:35 +09:00
require File.expand_path("../dtext/helper.rb", __FILE__)
describe DText do
tests = find_test
tests.each do |t|
match = t.gsub /\.txt$/, ".html"
it t do
assert_equal h(match), p(r(t))
end
end
2014-12-05 23:54:08 +09:00
it "does not explode on nil" do
assert_equal "", p(nil)
end
end