Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit eb64346

Browse files
committed
fix spec
1 parent 67c1ac2 commit eb64346

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/ai_bot/tools/update_artifact.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def invoke
167167
yield nil, true
168168
end
169169

170-
puts "updating artifact"
171170
update_custom_html(
172171
artifact: artifact,
173172
artifact_version: artifact_version,

spec/lib/utils/diff_utils/simple_diff_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
lin 1
2626
TEXT
2727

28-
expect(subject.apply(content, search, replace)).to eq(expected.strip)
28+
expect(subject.apply(content, search, replace).strip).to eq(expected.strip)
2929
end
3030

3131
it "raises error when no match is found" do
@@ -61,10 +61,10 @@
6161
end
6262

6363
it "is forgiving of whitespace differences" do
64-
content = "line1\n line2\nline3"
64+
content = "line1\n line2\nline3"
6565
search = "line2"
6666
replace = "new_line2"
67-
expect(subject.apply(content, search, replace)).to eq("line1\nnew_line2\nline3")
67+
expect(subject.apply(content, search, replace).strip).to eq("line1\n new_line2\nline3")
6868
end
6969

7070
it "is forgiving of small character differences" do

0 commit comments

Comments
 (0)