skip additional tests failures that are caused by networking issues

This commit is contained in:
Albert Yi
2018-09-11 13:43:11 -07:00
parent 2d828b9fac
commit e0e85a3139
2 changed files with 19 additions and 11 deletions

View File

@@ -4,12 +4,8 @@ class SourcesControllerTest < ActionDispatch::IntegrationTest
context "The sources controller" do
context "show action" do
should "work for a pixiv URL" do
begin
get source_path, params: { url: "http://www.pixiv.net/member_illust.php?mode=medium&illust_id=14901720", format: "json" }
assert_response :success
rescue Net::OpenTimeout
skip "Remote connection failed to Pixiv failed"
end
get source_path, params: { url: "http://www.pixiv.net/member_illust.php?mode=medium&illust_id=14901720", format: "json" }
assert_response :success
end
should "work for a direct twitter URL with referer" do