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

@@ -33,6 +33,14 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
end
end
context "custom_style action" do
should "work" do
@user.update!(custom_style: "span { color: red; }")
get_auth custom_style_users_path(format: "css"), @user
assert_response :success
end
end
context "show action" do
setup do
# flesh out profile to get more test coverage of user presenter.