blackbeard 0.0.1.2 → 0.0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blackbeard/dashboard/views/metrics/show.erb +2 -2
- data/lib/blackbeard/metric.rb +1 -1
- data/lib/blackbeard/version.rb +1 -1
- data/spec/metric_spec.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1db1bf5dab6fe74ffa7fac144296458b91e11776
|
4
|
+
data.tar.gz: cb171a43b4679602dea4b7e008e3fd7868fe88da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4fe376bbdb3eea72f1b85ef22f33ddd4a2ff7b2e1d9adc9e496882252e9cf8816655f08239313c1432b0bac98143d0129a81d5d4032b94297e676afff3a3003
|
7
|
+
data.tar.gz: 7060781fefba2dff053a79e8c18d051600864579838503b71c24a7ba8ca807434d23071b3b8d2a787faf9b265f7d10e2ff6aebe441c48e61d23914f5e8b2cfdc
|
data/lib/blackbeard/metric.rb
CHANGED
data/lib/blackbeard/version.rb
CHANGED
data/spec/metric_spec.rb
CHANGED
@@ -19,6 +19,18 @@ describe Blackbeard::Metric do
|
|
19
19
|
|
20
20
|
end
|
21
21
|
|
22
|
+
describe "hours" do
|
23
|
+
before :each do
|
24
|
+
@total_metric = Blackbeard::Metric::Total.new("one-total")
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should return an array of hashes" do
|
28
|
+
@total_metric.add('user1', 1)
|
29
|
+
@total_metric.hours.should be_an(Array)
|
30
|
+
@total_metric.hours.first.should be_a(Hash)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
22
34
|
describe "self.all" do
|
23
35
|
before :each do
|
24
36
|
Blackbeard::Metric::Total.new("one-total")
|