Commit da34ec6b5f99939c4e3bb5985681c902e2dab767

Authored by Diego Camarinha
Committed by Paulo Meireles
1 parent 6319f245

[Mezuro] New options for scope.

plugins/mezuro/lib/mezuro_plugin/helpers/content_viewer_helper.rb
... ... @@ -56,7 +56,7 @@ class MezuroPlugin::Helpers::ContentViewerHelper
56 56 end
57 57  
58 58 def self.scope_options
59   - [["Class", "CLASS"]]
  59 + [["Software", "SOFTWARE"], ["Package", "PACKAGE"], ["Class", "CLASS"], ["Method", "METHOD"]]
60 60 end
61 61  
62 62 private
... ...
plugins/mezuro/test/unit/mezuro_plugin/helpers/content_viewer_helper_test.rb
... ... @@ -30,9 +30,7 @@ class ContentViewerHelperTest < ActiveSupport::TestCase
30 30 should 'create the license options array' do
31 31 options = YAML.load_file("#{RAILS_ROOT}/plugins/mezuro/licenses.yml")
32 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 34 end
37 35  
38 36 should 'generate chart from metric result history' do
... ... @@ -61,7 +59,7 @@ class ContentViewerHelperTest &lt; ActiveSupport::TestCase
61 59 end
62 60  
63 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 63 end
66 64  
67 65 end
... ...