travis-ci
73 of 73 new or added lines in 10 files covered. (100.0%)
9360 of 45900 relevant lines covered (20.39%)
6310.53 hits per line
1 |
module Ekylibre |
× |
2 |
module Navigation |
× |
3 |
class Page |
× |
4 |
attr_reader :controller, :action, :path |
× |
5 |
|
× |
6 |
def initialize(to) |
× |
7 |
@path = to
|
× |
8 |
@controller, @action = @path.split('#')[0..1] |
× |
9 |
end
|
× |
10 |
|
× |
11 |
def to_hash |
× |
12 |
{ controller: '/' + @controller, action: @action } |
× |
13 |
end
|
× |
14 |
|
× |
15 |
def ==(other) |
× |
16 |
@path == other.path
|
× |
17 |
end
|
× |
18 |
|
× |
19 |
def human_name |
× |
20 |
"actions.#{@controller}.#{@action}".t
|
× |
21 |
end
|
× |
22 |
end
|
× |
23 |
end
|
× |
24 |
end
|
× |