Restore the global random seed
This commit is contained in:
parent
6c87f8fc29
commit
32ee6f80ee
Notes:
git
2021-12-16 17:44:30 +09:00
@ -2,6 +2,14 @@ require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/classes'
|
||||
|
||||
describe "Kernel#srand" do
|
||||
before :each do
|
||||
@seed = srand
|
||||
end
|
||||
|
||||
after :each do
|
||||
srand(@seed)
|
||||
end
|
||||
|
||||
it "is a private method" do
|
||||
Kernel.should have_private_instance_method(:srand)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user