Commit 042a5920c452c84657d0d2db30da1405bc450afd
Committed by
Paulo Meireles
1 parent
898c85db
Exists in
master
and in
29 other branches
[Mezuro] Trying to fix mock test in get grade history test
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb
... | ... | @@ -115,7 +115,7 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase |
115 | 115 | module_result_client.expects(:result_history).with(@name, @name).returns([@module_result]) |
116 | 116 | Kalibro::Client::ProjectClient.expects(:project).with(@name).returns(@project) |
117 | 117 | get :module_grade_history, :profile => @profile.identifier, :id => @content.id, :module_name => @name |
118 | - assert_equal assigns(:modules_results), [@module_result] | |
118 | + assert_equal [@module_result], assigns(:modules_results) | |
119 | 119 | assert_response 200 |
120 | 120 | end |
121 | 121 | ... | ... |