Commit 7b5b15c4d5249d8800e9abd7a510fecb5ceb52fc
Committed by
Paulo Meireles
1 parent
09b24df6
Exists in
master
and in
29 other branches
Fix ProjectContentTest: mock KalibroClient
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb
... | ... | @@ -33,9 +33,12 @@ class ProjectContentTest < Test::Unit::TestCase |
33 | 33 | end |
34 | 34 | |
35 | 35 | should 'send correct project to service' do |
36 | - client = mock | |
37 | - Kalibro::Client::ProjectClient.expects(:new).returns(client) | |
38 | - client.expects(:save).with(@project) | |
36 | + project_client = mock | |
37 | + kalibro_client = mock | |
38 | + Kalibro::Client::ProjectClient.expects(:new).returns(project_client) | |
39 | + project_client.expects(:save).with(@project) | |
40 | + Kalibro::Client::KalibroClient.expects(:new).returns(kalibro_client) | |
41 | + kalibro_client.expects(:process_project).with(@project.name) | |
39 | 42 | @content.send :send_project_to_service |
40 | 43 | end |
41 | 44 | ... | ... |