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 | 1 | require "test_helper" |
| 2 | -class CompoundMetricWithErrorTest < Test::Unit::TestCase | |
| 2 | +class CompoundMetricWithErrorTest < ActiveSupport::TestCase | |
| 3 | 3 | |
| 4 | 4 | def self.fixture |
| 5 | 5 | fixture = Kalibro::Entities::CompoundMetricWithError.new |
| ... | ... | @@ -26,4 +26,4 @@ class CompoundMetricWithErrorTest < Test::Unit::TestCase |
| 26 | 26 | assert_equal @hash, @entity.to_hash |
| 27 | 27 | end |
| 28 | 28 | |
| 29 | -end | |
| 30 | 29 | \ No newline at end of file |
| 30 | +end | ... | ... |
plugins/mezuro/test/unit/kalibro/entities/configuration_test.rb
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 | 1 | require "test_helper" |
| 2 | -class MetricConfigurationTest < Test::Unit::TestCase | |
| 2 | +class MetricConfigurationTest < ActiveSupport::TestCase | |
| 3 | 3 | |
| 4 | 4 | def self.amloc_configuration |
| 5 | 5 | range1 = RangeTest.amloc_excellent |
| ... | ... | @@ -53,4 +53,4 @@ class MetricConfigurationTest < Test::Unit::TestCase |
| 53 | 53 | assert self.class.sc_configuration.metric.instance_of?(Kalibro::Entities::CompoundMetric) |
| 54 | 54 | end |
| 55 | 55 | |
| 56 | -end | |
| 57 | 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
plugins/mezuro/test/unit/kalibro/entities/project_test.rb
plugins/mezuro/test/unit/kalibro/entities/range_test.rb
| 1 | 1 | require "test_helper" |
| 2 | -class RangeTest < Test::Unit::TestCase | |
| 2 | +class RangeTest < ActiveSupport::TestCase | |
| 3 | 3 | |
| 4 | 4 | Infinity = 1.0/0.0 |
| 5 | 5 | |
| ... | ... | @@ -46,4 +46,4 @@ class RangeTest < Test::Unit::TestCase |
| 46 | 46 | assert_equal @hash, @range.to_hash |
| 47 | 47 | end |
| 48 | 48 | |
| 49 | -end | |
| 50 | 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 | 1 | require "test_helper" |
| 2 | -class StackTraceElementTest < Test::Unit::TestCase | |
| 2 | +class StackTraceElementTest < ActiveSupport::TestCase | |
| 3 | 3 | |
| 4 | 4 | def self.fixture(method_name = 'stackTraceElementTestMethod', line_number = 42) |
| 5 | 5 | stack_trace_element = Kalibro::Entities::StackTraceElement.new |
| ... | ... | @@ -30,4 +30,4 @@ class StackTraceElementTest < Test::Unit::TestCase |
| 30 | 30 | assert_equal @hash, @stack_trace_element.to_hash |
| 31 | 31 | end |
| 32 | 32 | |
| 33 | -end | |
| 34 | 33 | \ No newline at end of file |
| 34 | +end | ... | ... |
plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb