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