summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-04-11 13:11:13 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2016-04-11 13:11:13 +0200
commit185d78bcb3064c25b764937949d2bb66ec66901a (patch)
treee456564df7abc356628bd043722391c3b81950c0
parent16926a676bdea4bfbbbaf9d390373073d2ff8bbd (diff)
downloadgitlab-ce-185d78bcb3064c25b764937949d2bb66ec66901a.tar.gz
Added specs for Gitlab::Metrics::System.cpu_time
-rw-r--r--spec/lib/gitlab/metrics/system_spec.rb6
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