Commit bedd4efd95419ff372c696eb21a6ca4fe9c314ce
Committed by
Caio
1 parent
8bf5faf9
Exists in
master
and in
28 other branches
[Mezuro] Testing_day - Functionals - Misses one test
Showing
2 changed files
with
10 additions
and
3 deletions
Show diff stats
plugins/mezuro/test/fixtures/native_metric_fixtures.rb
plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb
| ... | ... | @@ -137,11 +137,18 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase |
| 137 | 137 | assert_response 200 |
| 138 | 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 | 141 | get :module_metrics_history, :profile => '', :id => -1, :module_name => '' |
| 142 | 142 | assert_response 404 |
| 143 | 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 | 153 | private |
| 147 | 154 | ... | ... |