From bedd4efd95419ff372c696eb21a6ca4fe9c314ce Mon Sep 17 00:00:00 2001 From: Jefferson Fernandes + Diego Araujo + Rafael Manzo Date: Fri, 25 May 2012 15:55:41 -0300 Subject: [PATCH] [Mezuro] Testing_day - Functionals - Misses one test --- plugins/mezuro/test/fixtures/native_metric_fixtures.rb | 2 +- plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/plugins/mezuro/test/fixtures/native_metric_fixtures.rb b/plugins/mezuro/test/fixtures/native_metric_fixtures.rb index 2121c94..be6496c 100644 --- a/plugins/mezuro/test/fixtures/native_metric_fixtures.rb +++ b/plugins/mezuro/test/fixtures/native_metric_fixtures.rb @@ -26,4 +26,4 @@ class NativeMetricFixtures {:name => 'Average Method LOC', :scope => 'CLASS', :origin => 'Analizo', :language => ['JAVA']} end -end \ No newline at end of file +end diff --git a/plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb b/plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb index 525e8ca..eb9d9d6 100644 --- a/plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb +++ b/plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb @@ -137,11 +137,18 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase assert_response 200 end - should 'not find project tree for inexistent project content' do + should 'not find metrics history for inexistent project content' do get :module_metrics_history, :profile => '', :id => -1, :module_name => '' assert_response 404 end - + #copied from 'get grade history' test + should 'get metrics history' do + create_project_content + mock_module_result_history + Kalibro::Client::ProjectClient.expects(:project).with(@name).returns(@project) + get :module_metrics_history, :profile => @profile.identifier, :id => @content.id, :module_name => @name + assert_response 200 + end private -- libgit2 0.21.2