From 349c2188b1cff74183d77ef95b8dcdc6bd54b7d6 Mon Sep 17 00:00:00 2001 From: smriti Date: Tue, 6 Jul 2021 12:32:00 +0530 Subject: [PATCH] Changed link for chef dk in directory file Signed-off-by: smriti --- src/supermarket/app/views/cookbooks/directory.html.erb | 2 +- .../spec/views/cookbooks/directory.html.erb_spec.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/supermarket/app/views/cookbooks/directory.html.erb b/src/supermarket/app/views/cookbooks/directory.html.erb index 332cddb69..b40bf3798 100644 --- a/src/supermarket/app/views/cookbooks/directory.html.erb +++ b/src/supermarket/app/views/cookbooks/directory.html.erb @@ -107,7 +107,7 @@
  • - <%= link_to 'Chef Development Kit (Chef DK)', chef_downloads_url('chef-dk') %> + <%= link_to 'Chef Workstation', chef_downloads_url('tools/workstation') %>
  • diff --git a/src/supermarket/spec/views/cookbooks/directory.html.erb_spec.rb b/src/supermarket/spec/views/cookbooks/directory.html.erb_spec.rb index f7dc57ff4..79885c76f 100644 --- a/src/supermarket/spec/views/cookbooks/directory.html.erb_spec.rb +++ b/src/supermarket/spec/views/cookbooks/directory.html.erb_spec.rb @@ -14,5 +14,10 @@ expect(rendered).to have_selector("a[href]", text: test_kitchen_text) end + it "has workstation link pointing to correct url" do + render + expect(rendered).to have_link("Chef Workstation", href: "https://downloads.chef.io/tools/workstation") + end + it_behaves_like "community stats" end