spec/provider/pypi_spec.rb in dpl-1.8.39.travis.2157.5 vs spec/provider/pypi_spec.rb in dpl-1.8.39.travis.2162.5

- old
+ new

@@ -30,20 +30,20 @@ describe "#push_app" do example do expect(provider.context).to receive(:shell).with("python setup.py sdist") expect(provider.context).to receive(:shell).with("twine upload -r pypi dist/*") expect(provider.context).to receive(:shell).with("rm -rf dist/*") - expect(provider.context).to receive(:shell).with("python setup.py upload_docs -r https://pypi.python.org/pypi") + expect(provider.context).to receive(:shell).with("python setup.py upload_docs -r https://upload.pypi.org/legacy/") provider.push_app end example "with :distributions option" do provider.options.update(:distributions => 'sdist bdist') expect(provider.context).to receive(:shell).with("python setup.py sdist bdist") expect(provider.context).to receive(:shell).with("twine upload -r pypi dist/*") expect(provider.context).to receive(:shell).with("rm -rf dist/*") - expect(provider.context).to receive(:shell).with("python setup.py upload_docs -r https://pypi.python.org/pypi") + expect(provider.context).to receive(:shell).with("python setup.py upload_docs -r https://upload.pypi.org/legacy/") provider.push_app end example "with :server option" do provider.options.update(:server => 'http://blah.com') @@ -57,11 +57,11 @@ example "with :docs_dir option" do provider.options.update(:docs_dir => 'some/dir') expect(provider.context).to receive(:shell).with("python setup.py sdist") expect(provider.context).to receive(:shell).with("twine upload -r pypi dist/*") expect(provider.context).to receive(:shell).with("rm -rf dist/*") - expect(provider.context).to receive(:shell).with("python setup.py upload_docs --upload-dir some/dir -r https://pypi.python.org/pypi") + expect(provider.context).to receive(:shell).with("python setup.py upload_docs --upload-dir some/dir -r https://upload.pypi.org/legacy/") provider.push_app end example "with :skip_upload_docs option" do provider.options.update(:skip_upload_docs => true) @@ -75,10 +75,10 @@ describe "#write_servers" do example do f = double(:f) expect(f).to receive(:puts).with(" pypi") expect(f).to receive(:puts).with("[pypi]") - expect(f).to receive(:puts).with(["repository: https://pypi.python.org/pypi", + expect(f).to receive(:puts).with(["repository: https://upload.pypi.org/legacy/", "username: foo", "password: bar" ]) provider.write_servers(f) end