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