Commit 3c279a31e6f7dba6c9a484e95acf2be2a90e54af

Authored by Diego Camarinha
Committed by Rafael Manzo
1 parent 4343cafc

[Mezuro] Fixed 'get module result' test

plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb
... ... @@ -65,9 +65,10 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase
65 65  
66 66 should 'get project results from a specific date' do
67 67 create_project_content
68   - mock_project_result
69   - Kalibro::Client::ProjectClient.expects(:project).with(@name).returns(@project)
70   - get :project_result, :profile => @profile.identifier, :id => @content.id, :date => @project_result.date
  68 + mock_project_result
  69 + Kalibro::Client::ProjectClient.expects(:project).with(@name).returns(@project)
  70 + get :project_result, :profile => @profile.identifier, :id => @content.id, :date => @project_result.date
  71 + module_result_client.expects(:module_result).with(@name, @name, @project_result.date).returns(@module_result)
71 72 assert_response 200
72 73 end
73 74  
... ...
plugins/mezuro/views/content_viewer/_module_result.rhtml
... ... @@ -35,6 +35,7 @@
35 35 </td>
36 36 </tr>
37 37 <% end %>
  38 + <% end %>
38 39 <% end %>
39 40 </tbody>
40 41 <tfoot>
... ...