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