tests: add misc controller tests.

This commit is contained in:
evazion
2017-02-05 01:31:21 -06:00
parent 5c16e9ce48
commit d74503ae05
7 changed files with 61 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
require 'test_helper'
class DtextPreviewsControllerTest < ActionController::TestCase
context "The dtext previews controller" do
context "create action" do
should "render" do
post :create, { body: "h1. Touhou\n\n* [[touhou]]" }
assert_response :success
end
end
end
end