Skip to content

Commit 92c6113

Browse files
committed
Fix broken spec for Rex::Text.randomize_space
1 parent 5397fdb commit 92c6113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/lib/rex/text_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
let (:sample_text) { "The quick brown sploit jumped over the lazy A/V" }
119119
let (:spaced_text) { described_class.randomize_space(sample_text) }
120120
it "should return a string with at least one new space characater" do
121-
spaced_text.should match /\x09\x0d\x0a/
121+
spaced_text.should match /[\x09\x0d\x0a]/
122122
end
123123

124124
it "should not otherwise be mangled" do

0 commit comments

Comments
 (0)