summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mokhan@users.noreply.github.com>2019-04-18 16:58:17 -0600
committerGitHub <noreply@github.com>2019-04-18 16:58:17 -0600
commitcbea66d61ce63bf825da43c7d707fb293a413892 (patch)
tree1e5b07fd8ff13a2e922eb641bfcd4d28d352d423
parent82f33412bae63328d4edfcab343f9db90d2f3e71 (diff)
parenta5c9f092342abc7c6e17c2806fce4d91a4d37975 (diff)
Merge pull request #1 from mhijazi1/improve_testingHEADmaster
Improved testing
-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