Commit da34ec6b5f99939c4e3bb5985681c902e2dab767
Committed by
Paulo Meireles
1 parent
6319f245
Exists in
master
and in
29 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
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 < 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 | ... | ... |