diff options
| author | mo khan <mokhan@users.noreply.github.com> | 2019-04-18 16:58:17 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-18 16:58:17 -0600 |
| commit | cbea66d61ce63bf825da43c7d707fb293a413892 (patch) | |
| tree | 1e5b07fd8ff13a2e922eb641bfcd4d28d352d423 | |
| parent | 82f33412bae63328d4edfcab343f9db90d2f3e71 (diff) | |
| parent | a5c9f092342abc7c6e17c2806fce4d91a4d37975 (diff) | |
Improved testing
| -rw-r--r-- | spec/blumfump_spec.rb | 6 |
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 |
