From 042a5920c452c84657d0d2db30da1405bc450afd Mon Sep 17 00:00:00 2001 From: João M. M. da Silva + Alessandro Palmeira Date: Thu, 17 May 2012 15:47:47 -0300 Subject: [PATCH] [Mezuro] Trying to fix mock test in get grade history test --- plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6b13ea1..166372c 100644 --- a/plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb +++ b/plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb @@ -115,7 +115,7 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase module_result_client.expects(:result_history).with(@name, @name).returns([@module_result]) Kalibro::Client::ProjectClient.expects(:project).with(@name).returns(@project) get :module_grade_history, :profile => @profile.identifier, :id => @content.id, :module_name => @name - assert_equal assigns(:modules_results), [@module_result] + assert_equal [@module_result], assigns(:modules_results) assert_response 200 end -- libgit2 0.21.2