Commit 7542bd256d4452ddba275496e0be589df319abc5

Authored by Carlos Morais + Paulo Meirelles
Committed by Carlos Morais
1 parent aec7550d

[mezuro] Removing test for nil module_result name

Should never invoke projcet_content.module_result with nil
plugins/mezuro/lib/mezuro_plugin/project_content.rb
... ... @@ -26,7 +26,6 @@ class MezuroPlugin::ProjectContent < Article
26 26 end
27 27  
28 28 def module_result(module_name)
29   - module_name = project.name if module_name.nil?
30 29 @module_client ||= Kalibro::Client::ModuleResultClient.module_result(self, module_name)
31 30 end
32 31  
... ...
plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb
... ... @@ -51,13 +51,6 @@ class ProjectContentTest < ActiveSupport::TestCase
51 51 assert_equal module_result, @content.module_result(module_name)
52 52 end
53 53  
54   - should 'get module result root when nil is given' do
55   - module_result = mock
56   - Kalibro::Client::ModuleResultClient.expects(:module_result).with(@content, @project.name).
57   - returns(module_result)
58   - assert_equal module_result, @content.module_result(nil)
59   - end
60   -
61 54 should 'get module result root when project name is give' do
62 55 module_result = mock
63 56 Kalibro::Client::ModuleResultClient.expects(:module_result).with(@content, @project.name).
... ...