Sha256: f3e7ad378a0fd34c2e75b4f4929d00eb7aee6ab2730826444c4a37957f0d9373
Contents?: true
Size: 575 Bytes
Versions: 5
Compression:
Stored size: 575 Bytes
Contents
require 'spec_helper' describe Vx::Lib::Shell::ReadTimeout do subject { described_class.new 0.2 } it "just created" do expect(subject.value).to eq 0.2 expect(subject).to_not be_happened end it "should be work" do subject.reset sleep 0.1 expect(subject).to_not be_happened subject.reset sleep 0.3 expect(subject).to be_happened end it "do nothing unless value" do expect(subject).to_not be_happened end it "do nothing unless timeout" do subject.reset sleep 0.1 expect(subject).to_not be_happened end end
Version data entries
5 entries across 5 versions & 1 rubygems