From 60c7c86b050fd6149a6bbdc21e89f2b1422b6ee0 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 16 Jan 2022 22:23:13 +0100 Subject: [PATCH] Remove unnecessary `.dup` --- spec/helpers/markdown_helper_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/helpers/markdown_helper_spec.rb b/spec/helpers/markdown_helper_spec.rb index fe947b59..e8f495ea 100644 --- a/spec/helpers/markdown_helper_spec.rb +++ b/spec/helpers/markdown_helper_spec.rb @@ -26,7 +26,7 @@ describe MarkdownHelper, type: :helper do describe "#strip_markdown" do it "should not return formatted text" do - expect(strip_markdown("**Strong text**".dup)).to eq("Strong text") + expect(strip_markdown("**Strong text**")).to eq("Strong text") end end