diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-11 14:11:13 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-11 14:11:13 +0300 |
commit | 185d78bcb3064c25b764937949d2bb66ec66901a (patch) | |
tree | e456564df7abc356628bd043722391c3b81950c0 /spec/lib/gitlab/metrics | |
parent | 16926a676bdea4bfbbbaf9d390373073d2ff8bbd (diff) |
Added specs for Gitlab::Metrics::System.cpu_time
Diffstat (limited to 'spec/lib/gitlab/metrics')
-rw-r--r-- | spec/lib/gitlab/metrics/system_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/metrics/system_spec.rb b/spec/lib/gitlab/metrics/system_spec.rb index f8c1d956ca1..d6ae54e25e8 100644 --- a/spec/lib/gitlab/metrics/system_spec.rb +++ b/spec/lib/gitlab/metrics/system_spec.rb @@ -26,4 +26,10 @@ describe Gitlab::Metrics::System do end end end + + describe '.cpu_time' do + it 'returns a Fixnum' do + expect(described_class.cpu_time).to be_an_instance_of(Fixnum) + end + end end |