Commit 494ceb0c9b11651d449bb10d9301f5829da038ce
Committed by
João M. M. da Silva
1 parent
5e2a8961
Exists in
master
and in
29 other branches
[Mezuro] Changed Module model and tests to new kalibro.
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
plugins/mezuro/lib/kalibro/module.rb
... | ... | @@ -2,6 +2,7 @@ class Kalibro::Module < Kalibro::Model |
2 | 2 | |
3 | 3 | attr_accessor :name, :granularity |
4 | 4 | |
5 | +=begin | |
5 | 6 | def self.parent_names(name) |
6 | 7 | path = [] |
7 | 8 | ancestors = [] |
... | ... | @@ -15,4 +16,6 @@ class Kalibro::Module < Kalibro::Model |
15 | 16 | def ancestor_names |
16 | 17 | self.class.parent_names(@name) |
17 | 18 | end |
19 | +=end | |
20 | + | |
18 | 21 | end | ... | ... |
plugins/mezuro/test/unit/kalibro/module_test.rb
... | ... | @@ -17,6 +17,7 @@ class ModuleTest < ActiveSupport::TestCase |
17 | 17 | assert_equal @hash, @module.to_hash |
18 | 18 | end |
19 | 19 | |
20 | +=begin | |
20 | 21 | should 'list ancestor names' do |
21 | 22 | @module.name = "org.kalibro.core" |
22 | 23 | assert_equal ["org", "org.kalibro", "org.kalibro.core"], @module.ancestor_names |
... | ... | @@ -26,5 +27,6 @@ class ModuleTest < ActiveSupport::TestCase |
26 | 27 | @module.name = "org" |
27 | 28 | assert_equal ["org"], @module.ancestor_names |
28 | 29 | end |
29 | - | |
30 | +=end | |
31 | + | |
30 | 32 | end | ... | ... |