summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian C. Dunn <jdunn@chef.io>2015-02-16 16:53:31 -0500
committerJulian C. Dunn <jdunn@chef.io>2015-02-16 16:53:31 -0500
commit31548f92bd60aeae12924c20348ef7ad10144d7c (patch)
treed7ef340f65f59648bdc4dc4d2047c0bafcb0d8a4
parent9fb295cf92616045b5420f1496b3f0c75b023b05 (diff)
downloadchef-31548f92bd60aeae12924c20348ef7ad10144d7c.tar.gz
Fix supermarket.chef.io URL in tests too
-rw-r--r--spec/unit/knife/cookbook_site_download_spec.rb2
-rw-r--r--spec/unit/knife/cookbook_site_share_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/knife/cookbook_site_download_spec.rb b/spec/unit/knife/cookbook_site_download_spec.rb
index 6676fb34a1..fdf4c2197b 100644
--- a/spec/unit/knife/cookbook_site_download_spec.rb
+++ b/spec/unit/knife/cookbook_site_download_spec.rb
@@ -26,7 +26,7 @@ describe Chef::Knife::CookbookSiteDownload do
@knife.name_args = ['apache2']
@noauth_rest = double('no auth rest')
@stderr = StringIO.new
- @cookbook_api_url = 'https://supermarket.getchef.com/api/v1/cookbooks'
+ @cookbook_api_url = 'https://supermarket.chef.io/api/v1/cookbooks'
@version = '1.0.2'
@version_us = @version.gsub '.', '_'
@current_data = { 'deprecated' => false,
diff --git a/spec/unit/knife/cookbook_site_share_spec.rb b/spec/unit/knife/cookbook_site_share_spec.rb
index 515a1603ad..c5d08df808 100644
--- a/spec/unit/knife/cookbook_site_share_spec.rb
+++ b/spec/unit/knife/cookbook_site_share_spec.rb
@@ -170,8 +170,8 @@ describe Chef::Knife::CookbookSiteShare do
allow(File).to receive(:open).and_return(true)
end
- it 'should post the cookbook to "https://supermarket.getchef.com"' do
- response_text = Chef::JSONCompat.to_json({:uri => 'https://supermarket.getchef.com/cookbooks/cookbook_name'})
+ it 'should post the cookbook to "https://supermarket.chef.io"' do
+ response_text = Chef::JSONCompat.to_json({:uri => 'https://supermarket.chef.io/cookbooks/cookbook_name'})
allow(@upload_response).to receive(:body).and_return(response_text)
allow(@upload_response).to receive(:code).and_return(201)
expect(Chef::CookbookSiteStreamingUploader).to receive(:post).with(/supermarket\.getchef\.com/, anything(), anything(), anything())