From 4107a13b349a014c3866c4f23b8fc5455821e2d9 Mon Sep 17 00:00:00 2001 From: Alessandro Palmeira + Caio Salgado Date: Thu, 10 May 2012 16:07:52 -0300 Subject: [PATCH] [Mezuro] Fixed 'get result history' test --- plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb b/plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb index 654ec31..7afab93 100644 --- a/plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb +++ b/plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb @@ -67,11 +67,12 @@ returns(module_result) end should 'get result history' do - module_name = 'Qt-Calculator' - module_result_client = mock - @content.expects(:module_result_client).returns(module_result_client) + mock_project_client + module_name = 'Fake Name' + module_result_client = mock module_result_client.expects(:result_history).with(@project.name, module_name) - @content.result_history(module_name) + @content.expects(:module_result_client).returns(module_result_client) + @content.result_history(module_name) end should 'send project to service after saving' do -- libgit2 0.21.2