tests: add missing controller tests.
This commit is contained in:
12
test/functional/dtext_links_controller_test.rb
Normal file
12
test/functional/dtext_links_controller_test.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
require "test_helper"
|
||||
|
||||
class DtextLinksControllerTest < ActionDispatch::IntegrationTest
|
||||
context "index action" do
|
||||
should "work" do
|
||||
@user = create(:user)
|
||||
@wiki = as(@user) { create(:wiki_page, body: "[[test]]") }
|
||||
get dtext_links_path
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user