Skip to content

Commit 515fd01

Browse files
committed
Test randomization differently
1 parent 9d6c0b5 commit 515fd01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/octofacts_updater/plugin_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@
4949

5050
describe "#randomize_long_string" do
5151
it "should return the expected result" do
52-
result = described_class.randomize_long_string("abcdefghijklmnop")
53-
expect(result).to eq("MKf99Vml4egcfIIM")
52+
string_in = "abcdefghijklmnop"
53+
result = described_class.randomize_long_string(string_in)
54+
expect(result.length).to eq(string_in.length)
55+
expect(result).not_to eq(string_in)
5456
end
5557
end
5658
end

0 commit comments

Comments
 (0)