Commit 042a5920c452c84657d0d2db30da1405bc450afd

Authored by João M. M. da Silva + Alessandro Palmeira
Committed by Paulo Meireles
1 parent 898c85db

[Mezuro] Trying to fix mock test in get grade history test

plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb
@@ -115,7 +115,7 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase @@ -115,7 +115,7 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase
115 module_result_client.expects(:result_history).with(@name, @name).returns([@module_result]) 115 module_result_client.expects(:result_history).with(@name, @name).returns([@module_result])
116 Kalibro::Client::ProjectClient.expects(:project).with(@name).returns(@project) 116 Kalibro::Client::ProjectClient.expects(:project).with(@name).returns(@project)
117 get :module_grade_history, :profile => @profile.identifier, :id => @content.id, :module_name => @name 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 assert_response 200 119 assert_response 200
120 end 120 end
121 121