From 85c0aaa13453d142d5832d4553a54b64d901b5fa Mon Sep 17 00:00:00 2001 From: smriti Date: Mon, 12 Jul 2021 10:51:34 +0530 Subject: [PATCH] Changes for blog url link change Signed-off-by: smriti --- src/supermarket/app/helpers/custom_url_helper.rb | 2 +- src/supermarket/spec/helpers/custom_url_helper_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/supermarket/app/helpers/custom_url_helper.rb b/src/supermarket/app/helpers/custom_url_helper.rb index 1d04cc9d3..0150b018a 100644 --- a/src/supermarket/app/helpers/custom_url_helper.rb +++ b/src/supermarket/app/helpers/custom_url_helper.rb @@ -28,7 +28,7 @@ def progress_www_url(extra = nil) end def chef_blog_url(extra = nil) - url = ENV["CHEF_BLOG_URL"] || "#{chef_www_url}/blog" + url = ENV["CHEF_BLOG_URL"] || "https://blog.chef.io/" extra_dispatch(url, extra) end diff --git a/src/supermarket/spec/helpers/custom_url_helper_spec.rb b/src/supermarket/spec/helpers/custom_url_helper_spec.rb index f622c2939..bbdedd8ee 100644 --- a/src/supermarket/spec/helpers/custom_url_helper_spec.rb +++ b/src/supermarket/spec/helpers/custom_url_helper_spec.rb @@ -38,7 +38,7 @@ describe "blog url" do let(:meth) { :chef_blog_url } - let(:url) { "https://www.chef.io/blog" } + let(:url) { "https://blog.chef.io/" } it "should have a blog url that uses the www url" do expect(ENV["CHEF_BLOG_URL"]).to be_nil