Commit c45851e42bf01543101ef486d2d5cd91e7e9124f

Authored by Paulo Meireles
1 parent faa5f3c6

'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
1 1 require "test_helper"
2   -class BaseToolClientTest < Test::Unit::TestCase
  2 +class BaseToolClientTest < ActiveSupport::TestCase
3 3  
4 4 def setup
5 5 @port = mock
... ...
plugins/mezuro/test/unit/kalibro/client/configuration_client_test.rb
1 1 require "test_helper"
2   -class ConfigurationClientTest < Test::Unit::TestCase
  2 +class ConfigurationClientTest < ActiveSupport::TestCase
3 3  
4 4 def setup
5 5 @port = mock
... ...
plugins/mezuro/test/unit/kalibro/client/kalibro_client_test.rb
1 1 require "test_helper"
2   -class KalibroClientTest < Test::Unit::TestCase
  2 +class KalibroClientTest < ActiveSupport::TestCase
3 3  
4 4 def setup
5 5 @port = mock
... ...
plugins/mezuro/test/unit/kalibro/client/module_result_client_test.rb
1 1 require "test_helper"
2   -class ModuleResultClientTest < Test::Unit::TestCase
  2 +class ModuleResultClientTest < ActiveSupport::TestCase
3 3  
4 4 def setup
5 5 @port = mock
... ...
plugins/mezuro/test/unit/kalibro/client/port_test.rb
1 1 require "test_helper"
2   -class PortTest < Test::Unit::TestCase
  2 +class PortTest < ActiveSupport::TestCase
3 3  
4 4 def setup
5 5 @client = mock
... ...
plugins/mezuro/test/unit/kalibro/client/project_client_test.rb
1 1 require "test_helper"
2   -class ProjectClientTest < Test::Unit::TestCase
  2 +class ProjectClientTest < ActiveSupport::TestCase
3 3  
4 4 def setup
5 5 @port = mock
... ...
plugins/mezuro/test/unit/kalibro/client/project_result_client_test.rb
1 1 require "test_helper"
2   -class ProjectResultClientTest < Test::Unit::TestCase
  2 +class ProjectResultClientTest < ActiveSupport::TestCase
3 3  
4 4 def setup
5 5 @port = mock
... ...
plugins/mezuro/test/unit/kalibro/entities/base_tool_test.rb
1 1 require "test_helper"
2   -class BaseToolTest < Test::Unit::TestCase
  2 +class BaseToolTest < ActiveSupport::TestCase
3 3  
4 4 def self.analizo
5 5 total_cof = NativeMetricTest.total_cof
... ...
plugins/mezuro/test/unit/kalibro/entities/compound_metric_test.rb
1 1 require "test_helper"
2   -class CompoundMetricTest < Test::Unit::TestCase
  2 +class CompoundMetricTest < ActiveSupport::TestCase
3 3  
4 4 def self.sc
5 5 sc = Kalibro::Entities::CompoundMetric.new
... ...
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 &lt; 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
1 1 require "test_helper"
2   -class ConfigurationTest < Test::Unit::TestCase
  2 +class ConfigurationTest < ActiveSupport::TestCase
3 3  
4 4 def self.kalibro_configuration
5 5 amloc_configuration = MetricConfigurationTest.amloc_configuration
... ...
plugins/mezuro/test/unit/kalibro/entities/entity_test.rb
1 1 require "test_helper"
2   -class EntityTest < Test::Unit::TestCase
  2 +class EntityTest < ActiveSupport::TestCase
3 3  
4 4 def setup
5 5 @hash = {:name => 'Carlos', :age => 25,
... ...
plugins/mezuro/test/unit/kalibro/entities/error_test.rb
1 1 require "test_helper"
2   -class ErrorTest < Test::Unit::TestCase
  2 +class ErrorTest < ActiveSupport::TestCase
3 3  
4 4 def self.fixture
5 5 error = Kalibro::Entities::Error.new
... ...
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 &lt; 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
1 1 require "test_helper"
2   -class MetricResultTest < Test::Unit::TestCase
  2 +class MetricResultTest < ActiveSupport::TestCase
3 3  
4 4 def self.amloc_result
5 5 result = Kalibro::Entities::MetricResult.new
... ...
plugins/mezuro/test/unit/kalibro/entities/metric_test.rb
1 1 require "test_helper"
2   -class MetricTest < Test::Unit::TestCase
  2 +class MetricTest < ActiveSupport::TestCase
3 3  
4 4 def setup
5 5 name = 'MetricTest metric'
... ...
plugins/mezuro/test/unit/kalibro/entities/module_node_test.rb
1 1 require "test_helper"
2 2  
3   -class ModuleNodeTest < Test::Unit::TestCase
  3 +class ModuleNodeTest < ActiveSupport::TestCase
4 4  
5 5 def self.qt_calculator_tree
6 6 node = Kalibro::Entities::ModuleNode.new
... ...
plugins/mezuro/test/unit/kalibro/entities/module_result_test.rb
1 1 require "test_helper"
2 2  
3   -class ModuleResultTest < Test::Unit::TestCase
  3 +class ModuleResultTest < ActiveSupport::TestCase
4 4  
5 5 def self.fixture
6 6 amloc_result = MetricResultTest.amloc_result
... ...
plugins/mezuro/test/unit/kalibro/entities/module_test.rb
1 1 require "test_helper"
2   -class ModuleTest < Test::Unit::TestCase
  2 +class ModuleTest < ActiveSupport::TestCase
3 3  
4 4 def self.qt_calculator
5 5 entity = Kalibro::Entities::Module.new
... ...
plugins/mezuro/test/unit/kalibro/entities/native_metric_test.rb
1 1 require "test_helper"
2   -class NativeMetricTest < Test::Unit::TestCase
  2 +class NativeMetricTest < ActiveSupport::TestCase
3 3  
4 4 def self.total_cof
5 5 total_cof = Kalibro::Entities::NativeMetric.new
... ...
plugins/mezuro/test/unit/kalibro/entities/project_result_test.rb
1 1 require "test_helper"
2   -class ProjectResultTest < Test::Unit::TestCase
  2 +class ProjectResultTest < ActiveSupport::TestCase
3 3  
4 4 def self.qt_calculator
5 5 result = Kalibro::Entities::ProjectResult.new
... ...
plugins/mezuro/test/unit/kalibro/entities/project_test.rb
1 1 require "test_helper"
2   -class ProjectTest < Test::Unit::TestCase
  2 +class ProjectTest < ActiveSupport::TestCase
3 3  
4 4 def self.qt_calculator
5 5 project = Kalibro::Entities::Project.new
... ...
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 &lt; 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
1 1 require "test_helper"
2   -class RepositoryTest < Test::Unit::TestCase
  2 +class RepositoryTest < ActiveSupport::TestCase
3 3  
4 4 def self.qt_calculator
5 5 repository = Kalibro::Entities::Repository.new
... ...
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 &lt; 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
1 1 require "test_helper"
2   -class ProjectContentTest < Test::Unit::TestCase
  2 +class ProjectContentTest < ActiveSupport::TestCase
3 3  
4 4 def setup
5 5 @project = ProjectTest.qt_calculator
... ...
plugins/mezuro/test/unit/mezuro_plugin_test.rb
1 1 require "test_helper"
2   -class MezuroPluginTest < Test::Unit::TestCase
  2 +class MezuroPluginTest < ActiveSupport::TestCase
3 3  
4 4 def setup
5 5 @plugin = MezuroPlugin.new
... ...