Skip to content

Commit c7a5d4e

Browse files
committed
Escape the dots in the IP address in the regexp
1 parent 181f07b commit c7a5d4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/octocatalog-diff/integration/fact_file_by_branch_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
end
168168

169169
it 'should contain resources generated from the proper fact file' do
170-
expect(@result.stdout).to match(/"10.20.30.40"/)
170+
expect(@result.stdout).to match(/"10\.20\.30\.40"/)
171171
end
172172
end
173173

@@ -196,6 +196,6 @@
196196
end
197197

198198
it 'should contain resources generated from the proper fact file' do
199-
expect(@result.stdout).to match(/"10.30.50.70"/)
199+
expect(@result.stdout).to match(/"10\.30\.50\.70"/)
200200
end
201201
end

0 commit comments

Comments
 (0)