Skip to content
Browse files

test: only run config test if configured

  • Loading branch information...
1 parent 3a6be78 commit 545cf91f242d96cda65753a490e3f4faf25ea28a @nackd committed Apr 18, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 test/functional/metrics_controller_test.rb
View
14 test/functional/metrics_controller_test.rb
@@ -259,12 +259,14 @@ def mysuite.run(*args)
assert_select "#changes_effort_2", "0.0 hours (0.0 %)"
end
- assert_select "#config_effort_0", "0.0 hours (0.0 %)"
- assert_select "#config_effort_1", "0.0 hours (0.0 %)"
- assert_select "#config_effort_2", "0.0 hours (0.0 %)"
- # TODO assert_select "#config_changes_0", "0.0 hours"
- # TODO assert_select "#config_changes_1", "0.0 hours"
- # TODO assert_select "#config_changes_2", "0.0 hours"
+ unless Setting.plugin_redmine_cmi['conf_category'].blank?
+ assert_select "#config_effort_0", "0.0 hours (0.0 %)"
+ assert_select "#config_effort_1", "0.0 hours (0.0 %)"
+ assert_select "#config_effort_2", "0.0 hours (0.0 %)"
+ # TODO assert_select "#config_changes_0", "0.0 hours"
+ # TODO assert_select "#config_changes_1", "0.0 hours"
+ # TODO assert_select "#config_changes_2", "0.0 hours"
+ end
unless Setting.plugin_redmine_cmi['qa_tracker'].blank?
assert_select "#qa_meets_done_0", "1 (0.33 %)"

0 comments on commit 545cf91

Please sign in to comment.
Something went wrong with that request. Please try again.