Commit 4638615b authored by Samuel Giddins's avatar Samuel Giddins

Update for removal of docset_url attribute

parent b611ae93
...@@ -7,7 +7,7 @@ GIT ...@@ -7,7 +7,7 @@ GIT
GIT GIT
remote: https://github.com/CocoaPods/Core.git remote: https://github.com/CocoaPods/Core.git
revision: ca0a5d504357e48da31b274430a966d64fd62078 revision: 0c386062a4b72b3eb487129f6c8854bcd8ea1b68
branch: master branch: master
specs: specs:
cocoapods-core (0.39.0) cocoapods-core (0.39.0)
......
...@@ -257,7 +257,6 @@ module Pod ...@@ -257,7 +257,6 @@ module Pod
validate_screenshots(spec) validate_screenshots(spec)
validate_social_media_url(spec) validate_social_media_url(spec)
validate_documentation_url(spec) validate_documentation_url(spec)
validate_docset_url(spec)
valid = spec.available_platforms.send(fail_fast ? :all? : :each) do |platform| valid = spec.available_platforms.send(fail_fast ? :all? : :each) do |platform|
UI.message "\n\n#{spec} - Analyzing on #{platform} platform.".green.reversed UI.message "\n\n#{spec} - Analyzing on #{platform} platform.".green.reversed
...@@ -342,12 +341,6 @@ module Pod ...@@ -342,12 +341,6 @@ module Pod
validate_url(spec.documentation_url) if spec.documentation_url validate_url(spec.documentation_url) if spec.documentation_url
end end
# Performs validations related to the `docset_url` attribute.
#
def validate_docset_url(spec)
validate_url(spec.docset_url) if spec.docset_url
end
def setup_validation_environment def setup_validation_environment
validation_dir.rmtree if validation_dir.exist? validation_dir.rmtree if validation_dir.exist?
validation_dir.mkpath validation_dir.mkpath
......
...@@ -265,25 +265,6 @@ module Pod ...@@ -265,25 +265,6 @@ module Pod
@validator.results.map(&:to_s).first.should.match /The URL (.*) is not reachable/ @validator.results.map(&:to_s).first.should.match /The URL (.*) is not reachable/
end end
end end
describe 'docset URL validation' do
before do
@validator.stubs(:validate_homepage)
end
it 'checks if the docset URL is valid' do
Specification.any_instance.stubs(:docset_url).returns('http://banana-corp.local/')
WebMock::API.stub_request(:head, /banana-corp.local/).to_return(:status => 200)
@validator.validate
@validator.results.should.be.empty?
end
it "should fail validation if it wasn't able to validate the URL" do
Specification.any_instance.stubs(:docset_url).returns('http://banana-corp.local/not-found')
@validator.validate
@validator.results.map(&:to_s).first.should.match /The URL (.*) is not reachable/
end
end
end end
it 'respects the no clean option' do it 'respects the no clean option' do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment