tests: fix broken tests.

This commit is contained in:
evazion
2022-10-30 15:44:45 -05:00
parent eff82c43d2
commit 042863b2a6
5 changed files with 9 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ class IqdbQueriesControllerTest < ActionDispatch::IntegrationTest
context "show action" do
context "with a url parameter" do
should "render a response" do
@url = "https://google.com"
@url = "https://danbooru.donmai.us/images/flash-preview.png"
@matches = [{ post_id: @post.id, score: 95.0 }]
mock_iqdb_matches(@matches)

View File

@@ -62,13 +62,13 @@ class PostDisapprovalsControllerTest < ActionDispatch::IntegrationTest
should "allow mods to see disapprover names" do
get_auth post_disapprovals_path, create(:mod_user)
assert_response :success
assert_select "tr#post-disapproval-#{@post_disapproval.id} .created-column a.user-post-approver", true
assert_select "tr#post-disapproval-#{@post_disapproval.id} .created-column a.user-approver", true
end
should "not allow non-mods to see disapprover names" do
get post_disapprovals_path
assert_response :success
assert_select "tr#post-disapproval-#{@post_disapproval.id} .created-column a.user-post-approver", false
assert_select "tr#post-disapproval-#{@post_disapproval.id} .created-column a.user-approver", false
end
context "when a non-mod searches by disapprover name" do