summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMo Hijazi <mohijaz@cisco.com>2019-04-15 14:50:03 -0400
committerMo Hijazi <mohijaz@cisco.com>2019-04-15 14:51:26 -0400
commita5c9f092342abc7c6e17c2806fce4d91a4d37975 (patch)
tree1e5b07fd8ff13a2e922eb641bfcd4d28d352d423
parent82f33412bae63328d4edfcab343f9db90d2f3e71 (diff)
Added testing to actually validate new sleep functionality
-rw-r--r--spec/blumfump_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/blumfump_spec.rb b/spec/blumfump_spec.rb
index 3ab30ba..eeee98a 100644
--- a/spec/blumfump_spec.rb
+++ b/spec/blumfump_spec.rb
@@ -1,3 +1,9 @@
RSpec.describe Blumfump do
specify { expect(Blumfump::VERSION).not_to be_nil }
+
+ it 'should cause sleep to do nothing' do
+ start_time = Time.now
+ sleep(10)
+ expect(Time.now).to be_within(9).of start_time
+ end
end