tests: fix broken tests.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user