test/ruboto_setup_test.rb in ruboto-1.4.1 vs test/ruboto_setup_test.rb in ruboto-1.5.0
- old
+ new
@@ -2,15 +2,10 @@
require 'net/http'
class RubotoSetupTest < Minitest::Test
include Ruboto::Util::Setup
- SDK_DOWNLOAD_PAGE = 'http://developer.android.com/sdk/index.html?hl=sk'
- REPOSITORY_BASE = 'http://dl-ssl.google.com/android/repository'
- ADDONS_URL = "#{REPOSITORY_BASE}/extras/intel/addon.xml"
- HAXM_URL = 'https://software.intel.com/sites/default/files/managed/dd/21'
-
def test_if_sdk_page_still_exists?
uri = URI.parse(SDK_DOWNLOAD_PAGE)
res = Net::HTTP.get_response(uri)
assert_equal 200, res.code.to_i
end
@@ -22,12 +17,12 @@
end
def test_if_haxm_download_still_exists?
filename, version = get_new_haxm_filename
unless (filename.empty? || version.empty?)
- uri = URI.parse("#{HAXM_URL}/#{filename}")
+ uri = URI.parse("#{File.dirname(ADDONS_URL)}/#{filename}")
res = Net::HTTP.get_response(uri)
- assert_equal 200, res.code.to_i
+ assert_equal 200, res.code.to_i, uri
end
end
def test_if_regex_still_applies_to_sdk
regex = '(\>installer_.*.exe)'