travis-ci
8 of 8 new or added lines in 2 files covered. (100.0%)
856 of 895 relevant lines covered (95.64%)
26.68 hits per line
1 |
module Airborne |
3✔ |
2 |
class OptionalHashTypeExpectations |
3✔ |
3 |
include Enumerable
|
3✔ |
4 |
attr_accessor :hash
|
3✔ |
5 |
def initialize(hash) |
3✔ |
6 |
@hash = hash
|
6✔ |
7 |
end
|
|
8 |
|
|
9 |
def each |
3✔ |
10 |
@hash.each do|k, v| |
× |
11 |
yield(k, v)
|
× |
12 |
end
|
|
13 |
end
|
|
14 |
|
|
15 |
def [](val) |
3✔ |
16 |
@hash[val]
|
× |
17 |
end
|
|
18 |
|
|
19 |
def keys |
3✔ |
20 |
@hash.keys
|
× |
21 |
end
|
|
22 |
end
|
|
23 |
end
|