Commit bedd4efd95419ff372c696eb21a6ca4fe9c314ce

Authored by Jefferson Fernandes + Diego Araujo + Rafael Manzo
Committed by Caio
1 parent 8bf5faf9

[Mezuro] Testing_day - Functionals - Misses one test

plugins/mezuro/test/fixtures/native_metric_fixtures.rb
@@ -26,4 +26,4 @@ class NativeMetricFixtures @@ -26,4 +26,4 @@ class NativeMetricFixtures
26 {:name => 'Average Method LOC', :scope => 'CLASS', :origin => 'Analizo', :language => ['JAVA']} 26 {:name => 'Average Method LOC', :scope => 'CLASS', :origin => 'Analizo', :language => ['JAVA']}
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/functional/mezuro_plugin_profile_controller_test.rb
@@ -137,11 +137,18 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase @@ -137,11 +137,18 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase
137 assert_response 200 137 assert_response 200
138 end 138 end
139 139
140 - should 'not find project tree for inexistent project content' do 140 + should 'not find metrics history for inexistent project content' do
141 get :module_metrics_history, :profile => '', :id => -1, :module_name => '' 141 get :module_metrics_history, :profile => '', :id => -1, :module_name => ''
142 assert_response 404 142 assert_response 404
143 end 143 end
144 - 144 + #copied from 'get grade history' test
  145 + should 'get metrics history' do
  146 + create_project_content
  147 + mock_module_result_history
  148 + Kalibro::Client::ProjectClient.expects(:project).with(@name).returns(@project)
  149 + get :module_metrics_history, :profile => @profile.identifier, :id => @content.id, :module_name => @name
  150 + assert_response 200
  151 + end
145 152
146 private 153 private
147 154