Commit 2e43c86afdf88a28349214a9c5bad5fbb41adf7b

Authored by Carlos Morais + Paulo Meirelles
Committed by Carlos Morais
1 parent 929600e6

[Mezuro] Fix fixtures 'require'

Adding 'TODO test' for ProjectResult and ModuleResult clients
plugins/mezuro/lib/kalibro/client/module_result_client.rb
1 class Kalibro::Client::ModuleResultClient 1 class Kalibro::Client::ModuleResultClient
2 2
  3 + # TODO test this
3 def self.module_result(project_content, module_name) 4 def self.module_result(project_content, module_name)
4 project_result = project_content.project_result 5 project_result = project_content.project_result
5 new.module_result(project_result.project.name, module_name, project_result.date) 6 new.module_result(project_result.project.name, module_name, project_result.date)
plugins/mezuro/lib/kalibro/client/project_result_client.rb
1 class Kalibro::Client::ProjectResultClient 1 class Kalibro::Client::ProjectResultClient
2 2
  3 + # TODO test this
3 def self.last_result(project_name) 4 def self.last_result(project_name)
4 new.last_result(project_name) 5 new.last_result(project_name)
5 end 6 end
plugins/mezuro/test/fixtures/compound_metric_with_error_fixtures.rb
  1 +require File.dirname(__FILE__) + '/error_fixtures'
  2 +
1 class CompoundMetricWithErrorFixtures 3 class CompoundMetricWithErrorFixtures
2 4
3 def self.create 5 def self.create
plugins/mezuro/test/fixtures/error_fixtures.rb
  1 +require File.dirname(__FILE__) + '/stack_trace_element_fixtures'
  2 +
1 class ErrorFixtures 3 class ErrorFixtures
2 4
3 def self.create 5 def self.create
plugins/mezuro/test/fixtures/metric_result_fixtures.rb
  1 +require File.dirname(__FILE__) + '/compound_metric_fixtures'
  2 +require File.dirname(__FILE__) + '/native_metric_fixtures'
  3 +require File.dirname(__FILE__) + '/range_fixtures'
  4 +
1 class MetricResultFixtures 5 class MetricResultFixtures
2 6
3 def self.amloc_result 7 def self.amloc_result
plugins/mezuro/test/fixtures/module_result_fixtures.rb
  1 +require File.dirname(__FILE__) + '/module_fixtures'
  2 +require File.dirname(__FILE__) + '/metric_result_fixtures'
  3 +require File.dirname(__FILE__) + '/compound_metric_with_error_fixtures'
  4 +
1 class ModuleResultFixtures 5 class ModuleResultFixtures
2 6
3 def self.create 7 def self.create
plugins/mezuro/test/fixtures/project_result_fixtures.rb
  1 +require File.dirname(__FILE__) + '/project_fixtures'
  2 +require File.dirname(__FILE__) + '/module_node_fixtures'
  3 +require File.dirname(__FILE__) + '/module_result_fixtures'
  4 +
1 class ProjectResultFixtures 5 class ProjectResultFixtures
2 6
3 def self.qt_calculator 7 def self.qt_calculator
plugins/mezuro/test/unit/kalibro/client/project_result_client_test.rb
1 require "test_helper" 1 require "test_helper"
2 2
3 -require "#{RAILS_ROOT}/plugins/mezuro/test/fixtures/configuration_fixtures" 3 +require "#{RAILS_ROOT}/plugins/mezuro/test/fixtures/project_result_fixtures"
4 4
5 class ProjectResultClientTest < ActiveSupport::TestCase 5 class ProjectResultClientTest < ActiveSupport::TestCase
6 6