Commit 80e4ce40f0497afbad354e73ee68151bc6d175ab
Committed by
Caio
1 parent
39fe9156
Exists in
master
and in
28 other branches
[Mezuro] Creating tests for metric configuration content. Found a bug in metric_…
…configuration method.
Showing
2 changed files
with
25 additions
and
1 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin/metric_configuration_content.rb
plugins/mezuro/test/unit/mezuro_plugin/metric_configuration_content_test.rb
0 → 100644
| ... | ... | @@ -0,0 +1,24 @@ |
| 1 | +require "test_helper" | |
| 2 | + | |
| 3 | +class MetricConfigurationContentTest < ActiveSupport::TestCase | |
| 4 | + | |
| 5 | + def setup | |
| 6 | + @metric_configuration = MezuroPlugin::MetricConfigurationContent.new | |
| 7 | + end | |
| 8 | + | |
| 9 | + should 'be a metric configuration' do | |
| 10 | + assert_kind_of Article, @metric_configuration | |
| 11 | + end | |
| 12 | + | |
| 13 | + should 'have short description' do | |
| 14 | + assert_equal 'Kalibro Configurated Metric', MezuroPlugin::MetricConfigurationContent.short_description | |
| 15 | + end | |
| 16 | + | |
| 17 | + should 'have description' do | |
| 18 | + assert_equal 'Sets of thresholds to interpret a metric', MezuroPlugin::MetricConfigurationContent.description | |
| 19 | + end | |
| 20 | + | |
| 21 | + should 'return metric configuration' do | |
| 22 | + pending "Need refactoring" | |
| 23 | + end | |
| 24 | +end | ... | ... |