From 7b5b15c4d5249d8800e9abd7a510fecb5ceb52fc Mon Sep 17 00:00:00 2001 From: Carlos Morais + Paulo Meirelles Date: Mon, 9 Jan 2012 14:47:34 -0200 Subject: [PATCH] Fix ProjectContentTest: mock KalibroClient --- plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 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 8fca6ec..8d671e5 100644 --- a/plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb +++ b/plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb @@ -33,9 +33,12 @@ class ProjectContentTest < Test::Unit::TestCase end should 'send correct project to service' do - client = mock - Kalibro::Client::ProjectClient.expects(:new).returns(client) - client.expects(:save).with(@project) + project_client = mock + kalibro_client = mock + Kalibro::Client::ProjectClient.expects(:new).returns(project_client) + project_client.expects(:save).with(@project) + Kalibro::Client::KalibroClient.expects(:new).returns(kalibro_client) + kalibro_client.expects(:process_project).with(@project.name) @content.send :send_project_to_service end -- libgit2 0.21.2