Skip to content

Commit b98d3f8

Browse files
authored
Add test for marshal load
1 parent 2c297ab commit b98d3f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/scientist/experiment_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ def @ex.raised(op, exception)
512512
assert_kind_of(String, Marshal.dump(mismatch))
513513
end
514514

515+
it "can be marshal loaded" do
516+
assert_kind_of(Fake, Marshal.load(Marshal.dump(@ex))
517+
end
518+
515519
describe "#raise_on_mismatches?" do
516520
it "raises when there is a mismatch if the experiment instance's raise on mismatches is enabled" do
517521
Fake.raise_on_mismatches = false

0 commit comments

Comments
 (0)