Commit 4107a13b349a014c3866c4f23b8fc5455821e2d9

Authored by Alessandro Palmeira + Caio Salgado
Committed by Rafael Manzo
1 parent a0884dec

[Mezuro] Fixed 'get result history' test

plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb
@@ -67,11 +67,12 @@ returns(module_result) @@ -67,11 +67,12 @@ returns(module_result)
67 end 67 end
68 68
69 should 'get result history' do 69 should 'get result history' do
70 - module_name = 'Qt-Calculator'  
71 - module_result_client = mock  
72 - @content.expects(:module_result_client).returns(module_result_client) 70 + mock_project_client
  71 + module_name = 'Fake Name'
  72 + module_result_client = mock
73 module_result_client.expects(:result_history).with(@project.name, module_name) 73 module_result_client.expects(:result_history).with(@project.name, module_name)
74 - @content.result_history(module_name) 74 + @content.expects(:module_result_client).returns(module_result_client)
  75 + @content.result_history(module_name)
75 end 76 end
76 77
77 should 'send project to service after saving' do 78 should 'send project to service after saving' do