Commit da34ec6b5f99939c4e3bb5985681c902e2dab767
Committed by
Paulo Meireles
1 parent
6319f245
Exists in
master
and in
28 other branches
[Mezuro] New options for scope.
Showing
2 changed files
with
3 additions
and
5 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin/helpers/content_viewer_helper.rb
@@ -56,7 +56,7 @@ class MezuroPlugin::Helpers::ContentViewerHelper | @@ -56,7 +56,7 @@ class MezuroPlugin::Helpers::ContentViewerHelper | ||
56 | end | 56 | end |
57 | 57 | ||
58 | def self.scope_options | 58 | def self.scope_options |
59 | - [["Class", "CLASS"]] | 59 | + [["Software", "SOFTWARE"], ["Package", "PACKAGE"], ["Class", "CLASS"], ["Method", "METHOD"]] |
60 | end | 60 | end |
61 | 61 | ||
62 | private | 62 | private |
plugins/mezuro/test/unit/mezuro_plugin/helpers/content_viewer_helper_test.rb
@@ -30,9 +30,7 @@ class ContentViewerHelperTest < ActiveSupport::TestCase | @@ -30,9 +30,7 @@ class ContentViewerHelperTest < ActiveSupport::TestCase | ||
30 | should 'create the license options array' do | 30 | should 'create the license options array' do |
31 | options = YAML.load_file("#{RAILS_ROOT}/plugins/mezuro/licenses.yml") | 31 | options = YAML.load_file("#{RAILS_ROOT}/plugins/mezuro/licenses.yml") |
32 | options = options.split(";") | 32 | options = options.split(";") |
33 | - formated_options = [] | ||
34 | - options.each { |option| formated_options << [option, option] } | ||
35 | - assert_equal formated_options, @helper.license_options | 33 | + assert_equal options, @helper.license_options |
36 | end | 34 | end |
37 | 35 | ||
38 | should 'generate chart from metric result history' do | 36 | should 'generate chart from metric result history' do |
@@ -61,7 +59,7 @@ class ContentViewerHelperTest < ActiveSupport::TestCase | @@ -61,7 +59,7 @@ class ContentViewerHelperTest < ActiveSupport::TestCase | ||
61 | end | 59 | end |
62 | 60 | ||
63 | should 'create scope options' do | 61 | should 'create scope options' do |
64 | - assert_equal [["Class", "CLASS"]], @helper.scope_options | 62 | + assert_equal [["Software", "SOFTWARE"], ["Package", "PACKAGE"], ["Class", "CLASS"], ["Method", "METHOD"]], @helper.scope_options |
65 | end | 63 | end |
66 | 64 | ||
67 | end | 65 | end |