before(:each) do
allow(Kernel).to receive(:sleep)
allow_any_instance_of(Object).to receive(:sleep)
end
参考: http://stackoverflow.com/questions/1168845/rspec-stubbing-kernelsleep
Go to list of users who liked
More than 5 years have passed since last update.
before(:each) do
allow(Kernel).to receive(:sleep)
allow_any_instance_of(Object).to receive(:sleep)
end
参考: http://stackoverflow.com/questions/1168845/rspec-stubbing-kernelsleep
Register as a new user and use Qiita more conveniently
Go to list of users who liked