summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-04 16:27:38 -0800
committerTim Smith <tsmith84@gmail.com>2020-03-04 16:42:46 -0800
commitd438a1de3e2ea97b555458a498f278ce1c83941b (patch)
tree83a5093b6e03bae25a4a6086a90b18da3cd8e12f /spec
parent34745ce52cd595dd387141ead296e776a0dc859c (diff)
downloadchef-d438a1de3e2ea97b555458a498f278ce1c83941b.tar.gz
Make the links end with /docs_links
Thanks for pointing this out Ian Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/data/cookbooks/starter/recipes/default.rb2
-rw-r--r--spec/unit/data_collector_spec.rb2
-rw-r--r--spec/unit/deprecated_spec.rb4
3 files changed, 4 insertions, 4 deletions
diff --git a/spec/data/cookbooks/starter/recipes/default.rb b/spec/data/cookbooks/starter/recipes/default.rb
index c48b9a4fca..4b5f712879 100644
--- a/spec/data/cookbooks/starter/recipes/default.rb
+++ b/spec/data/cookbooks/starter/recipes/default.rb
@@ -1,4 +1,4 @@
# This is a Chef recipe file. It can be used to specify resources which will
# apply configuration to a server.
-# For more information, see the documentation: https://docs.chef.io/essentials_cookbook_recipes.html
+# For more information, see the documentation: https://docs.chef.io/recipes/
diff --git a/spec/unit/data_collector_spec.rb b/spec/unit/data_collector_spec.rb
index 7f09815f46..3a1eb5b521 100644
--- a/spec/unit/data_collector_spec.rb
+++ b/spec/unit/data_collector_spec.rb
@@ -626,7 +626,7 @@ describe Chef::DataCollector do
it "collects deprecation messages" do
location = Chef::Log.caller_location
events.deprecation(Chef::Deprecated.create(:internal_api, "deprecation warning", location))
- expect_converge_message("deprecations" => [{ location: location, message: "deprecation warning", url: "https://docs.chef.io/deprecations_internal_api" }])
+ expect_converge_message("deprecations" => [{ location: location, message: "deprecation warning", url: "https://docs.chef.io/deprecations_internal_api/" }])
send_run_failed_or_completed_event
end
end
diff --git a/spec/unit/deprecated_spec.rb b/spec/unit/deprecated_spec.rb
index 144a8d2073..993a4dd564 100644
--- a/spec/unit/deprecated_spec.rb
+++ b/spec/unit/deprecated_spec.rb
@@ -44,11 +44,11 @@ describe Chef::Deprecated do
let(:location) { "the location" }
it "displays the full URL" do
- expect(TestDeprecation.new.url).to eql("https://docs.chef.io/deprecations_test")
+ expect(TestDeprecation.new.url).to eql("https://docs.chef.io/deprecations_test/")
end
it "formats a complete deprecation message" do
- expect(TestDeprecation.new(message, location).to_s).to eql("Deprecation CHEF-999 from the location\n\n A test message\n\nPlease see https://docs.chef.io/deprecations_test for further details and information on how to correct this problem.")
+ expect(TestDeprecation.new(message, location).to_s).to eql("Deprecation CHEF-999 from the location\n\n A test message\n\nPlease see https://docs.chef.io/deprecations_test/ for further details and information on how to correct this problem.")
end
end