fix tests
This commit is contained in:
@@ -327,7 +327,6 @@
|
||||
|
||||
Danbooru.RelatedTag.disable_artist_url = function(e) {
|
||||
var url = e.currentTarget.href;
|
||||
console.log("clicked %o", url);
|
||||
$.each(Danbooru.RelatedTag.recent_artists[0].sorted_urls, function(k, v) {
|
||||
if (v["normalized_url"] === url || v["url"] === url) {
|
||||
if (!confirm("This will mark the URL as inactive. Continue?")) {
|
||||
|
||||
@@ -199,7 +199,7 @@ class ArtistsControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
should "undelete an artist" do
|
||||
@builder = create(:builder_user)
|
||||
post_auth undelete_artist_path(@artist.id), @builder
|
||||
put_auth artist_path(@artist.id), @builder, params: {artist: {is_active: true}}
|
||||
assert_redirected_to(artist_path(@artist.id))
|
||||
assert_equal(true, @artist.reload.is_active)
|
||||
end
|
||||
|
||||
@@ -194,7 +194,7 @@ class PostReplacementTest < ActiveSupport::TestCase
|
||||
assert_equal("cad1da177ef309bf40a117c17b8eecf5", Digest::MD5.file(@post.file).hexdigest)
|
||||
|
||||
assert_equal("https://i.pximg.net/img-zip-ugoira/img/2017/04/04/08/57/38/62247364_ugoira1920x1080.zip", @post.source)
|
||||
assert_equal([{"delay_msec"=>125}, {"delay_msec"=>125}], @post.pixiv_ugoira_frame_data.data)
|
||||
assert_equal([{"delay"=>125, "file"=>"000001.jpg"}, {"delay"=>125,"file"=>"000002.jpg"}], @post.pixiv_ugoira_frame_data.data)
|
||||
rescue Net::OpenTimeout
|
||||
skip "Remote connection to Pixiv failed"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user