tests: add more controller tests.

* Fix an exception in /artists/show_or_new.
This commit is contained in:
evazion
2020-03-31 17:46:45 -05:00
parent a272453bd0
commit e0a72ef135
9 changed files with 131 additions and 1 deletions

View File

@@ -129,6 +129,11 @@ class WikiPagesControllerTest < ActionDispatch::IntegrationTest
get show_or_new_wiki_pages_path, params: { title: "what" }
assert_redirected_to wiki_page_path("what")
end
should "redirect when given a blank title" do
get show_or_new_wiki_pages_path
assert_redirected_to new_wiki_page_path
end
end
context "new action" do