push
circleci
3494 of 6282 relevant lines covered (55.62%)
40.18 hits per line
1 |
module ActiveFedora |
1✔ |
2 |
module Pathing |
1✔ |
3 |
extend ActiveSupport::Concern |
1✔ |
4 |
|
|
5 |
included do
|
1✔ |
6 |
def uri_prefix |
2✔ |
7 |
nil
|
|
8 |
end
|
|
9 |
|
|
10 |
def has_uri_prefix? |
2✔ |
11 |
!uri_prefix.nil? |
172✔ |
12 |
end
|
|
13 |
|
|
14 |
def root_resource_path |
2✔ |
15 |
if has_uri_prefix?
|
86✔ |
16 |
ActiveFedora.fedora.base_path + "/" + uri_prefix |
× |
17 |
else
|
|
18 |
ActiveFedora.fedora.base_path
|
86✔ |
19 |
end
|
|
20 |
end
|
|
21 |
end
|
|
22 |
end
|
|
23 |
end
|