Commit c45851e42bf01543101ef486d2d5cd91e7e9124f
1 parent
faa5f3c6
Exists in
master
and in
29 other branches
's/Test::Unit::TestCase/ActiveSupport::TestCase/g'
to run Mezuro unit tests properly according to Rails 2.3.5
Showing
27 changed files
with
31 additions
and
31 deletions
Show diff stats
plugins/mezuro/test/unit/kalibro/client/base_tool_client_test.rb
plugins/mezuro/test/unit/kalibro/client/configuration_client_test.rb
plugins/mezuro/test/unit/kalibro/client/kalibro_client_test.rb
plugins/mezuro/test/unit/kalibro/client/module_result_client_test.rb
plugins/mezuro/test/unit/kalibro/client/port_test.rb
plugins/mezuro/test/unit/kalibro/client/project_client_test.rb
plugins/mezuro/test/unit/kalibro/client/project_result_client_test.rb
plugins/mezuro/test/unit/kalibro/entities/base_tool_test.rb
plugins/mezuro/test/unit/kalibro/entities/compound_metric_test.rb
plugins/mezuro/test/unit/kalibro/entities/compound_metric_with_error_test.rb
1 | require "test_helper" | 1 | require "test_helper" |
2 | -class CompoundMetricWithErrorTest < Test::Unit::TestCase | 2 | +class CompoundMetricWithErrorTest < ActiveSupport::TestCase |
3 | 3 | ||
4 | def self.fixture | 4 | def self.fixture |
5 | fixture = Kalibro::Entities::CompoundMetricWithError.new | 5 | fixture = Kalibro::Entities::CompoundMetricWithError.new |
@@ -26,4 +26,4 @@ class CompoundMetricWithErrorTest < Test::Unit::TestCase | @@ -26,4 +26,4 @@ class CompoundMetricWithErrorTest < Test::Unit::TestCase | ||
26 | assert_equal @hash, @entity.to_hash | 26 | assert_equal @hash, @entity.to_hash |
27 | end | 27 | end |
28 | 28 | ||
29 | -end | ||
30 | \ No newline at end of file | 29 | \ No newline at end of file |
30 | +end |
plugins/mezuro/test/unit/kalibro/entities/configuration_test.rb
1 | require "test_helper" | 1 | require "test_helper" |
2 | -class ConfigurationTest < Test::Unit::TestCase | 2 | +class ConfigurationTest < ActiveSupport::TestCase |
3 | 3 | ||
4 | def self.kalibro_configuration | 4 | def self.kalibro_configuration |
5 | amloc_configuration = MetricConfigurationTest.amloc_configuration | 5 | amloc_configuration = MetricConfigurationTest.amloc_configuration |
plugins/mezuro/test/unit/kalibro/entities/entity_test.rb
plugins/mezuro/test/unit/kalibro/entities/error_test.rb
plugins/mezuro/test/unit/kalibro/entities/metric_configuration_test.rb
1 | require "test_helper" | 1 | require "test_helper" |
2 | -class MetricConfigurationTest < Test::Unit::TestCase | 2 | +class MetricConfigurationTest < ActiveSupport::TestCase |
3 | 3 | ||
4 | def self.amloc_configuration | 4 | def self.amloc_configuration |
5 | range1 = RangeTest.amloc_excellent | 5 | range1 = RangeTest.amloc_excellent |
@@ -53,4 +53,4 @@ class MetricConfigurationTest < Test::Unit::TestCase | @@ -53,4 +53,4 @@ class MetricConfigurationTest < Test::Unit::TestCase | ||
53 | assert self.class.sc_configuration.metric.instance_of?(Kalibro::Entities::CompoundMetric) | 53 | assert self.class.sc_configuration.metric.instance_of?(Kalibro::Entities::CompoundMetric) |
54 | end | 54 | end |
55 | 55 | ||
56 | -end | ||
57 | \ No newline at end of file | 56 | \ No newline at end of file |
57 | +end |
plugins/mezuro/test/unit/kalibro/entities/metric_result_test.rb
plugins/mezuro/test/unit/kalibro/entities/metric_test.rb
plugins/mezuro/test/unit/kalibro/entities/module_node_test.rb
plugins/mezuro/test/unit/kalibro/entities/module_result_test.rb
plugins/mezuro/test/unit/kalibro/entities/module_test.rb
plugins/mezuro/test/unit/kalibro/entities/native_metric_test.rb
plugins/mezuro/test/unit/kalibro/entities/project_result_test.rb
1 | require "test_helper" | 1 | require "test_helper" |
2 | -class ProjectResultTest < Test::Unit::TestCase | 2 | +class ProjectResultTest < ActiveSupport::TestCase |
3 | 3 | ||
4 | def self.qt_calculator | 4 | def self.qt_calculator |
5 | result = Kalibro::Entities::ProjectResult.new | 5 | result = Kalibro::Entities::ProjectResult.new |
plugins/mezuro/test/unit/kalibro/entities/project_test.rb
plugins/mezuro/test/unit/kalibro/entities/range_test.rb
1 | require "test_helper" | 1 | require "test_helper" |
2 | -class RangeTest < Test::Unit::TestCase | 2 | +class RangeTest < ActiveSupport::TestCase |
3 | 3 | ||
4 | Infinity = 1.0/0.0 | 4 | Infinity = 1.0/0.0 |
5 | 5 | ||
@@ -46,4 +46,4 @@ class RangeTest < Test::Unit::TestCase | @@ -46,4 +46,4 @@ class RangeTest < Test::Unit::TestCase | ||
46 | assert_equal @hash, @range.to_hash | 46 | assert_equal @hash, @range.to_hash |
47 | end | 47 | end |
48 | 48 | ||
49 | -end | ||
50 | \ No newline at end of file | 49 | \ No newline at end of file |
50 | +end |
plugins/mezuro/test/unit/kalibro/entities/repository_test.rb
plugins/mezuro/test/unit/kalibro/entities/stack_trace_element_test.rb
1 | require "test_helper" | 1 | require "test_helper" |
2 | -class StackTraceElementTest < Test::Unit::TestCase | 2 | +class StackTraceElementTest < ActiveSupport::TestCase |
3 | 3 | ||
4 | def self.fixture(method_name = 'stackTraceElementTestMethod', line_number = 42) | 4 | def self.fixture(method_name = 'stackTraceElementTestMethod', line_number = 42) |
5 | stack_trace_element = Kalibro::Entities::StackTraceElement.new | 5 | stack_trace_element = Kalibro::Entities::StackTraceElement.new |
@@ -30,4 +30,4 @@ class StackTraceElementTest < Test::Unit::TestCase | @@ -30,4 +30,4 @@ class StackTraceElementTest < Test::Unit::TestCase | ||
30 | assert_equal @hash, @stack_trace_element.to_hash | 30 | assert_equal @hash, @stack_trace_element.to_hash |
31 | end | 31 | end |
32 | 32 | ||
33 | -end | ||
34 | \ No newline at end of file | 33 | \ No newline at end of file |
34 | +end |
plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb
plugins/mezuro/test/unit/mezuro_plugin_test.rb