From 7542bd256d4452ddba275496e0be589df319abc5 Mon Sep 17 00:00:00 2001 From: Carlos Morais + Paulo Meirelles Date: Thu, 12 Apr 2012 14:47:49 -0300 Subject: [PATCH] [mezuro] Removing test for nil module_result name --- plugins/mezuro/lib/mezuro_plugin/project_content.rb | 1 - plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb | 7 ------- 2 files changed, 0 insertions(+), 8 deletions(-) diff --git a/plugins/mezuro/lib/mezuro_plugin/project_content.rb b/plugins/mezuro/lib/mezuro_plugin/project_content.rb index 089a8b3..364bf3d 100644 --- a/plugins/mezuro/lib/mezuro_plugin/project_content.rb +++ b/plugins/mezuro/lib/mezuro_plugin/project_content.rb @@ -26,7 +26,6 @@ class MezuroPlugin::ProjectContent < Article end def module_result(module_name) - module_name = project.name if module_name.nil? @module_client ||= Kalibro::Client::ModuleResultClient.module_result(self, module_name) end 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 4a7cc5b..0705616 100644 --- a/plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb +++ b/plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb @@ -51,13 +51,6 @@ class ProjectContentTest < ActiveSupport::TestCase assert_equal module_result, @content.module_result(module_name) end - should 'get module result root when nil is given' do - module_result = mock - Kalibro::Client::ModuleResultClient.expects(:module_result).with(@content, @project.name). - returns(module_result) - assert_equal module_result, @content.module_result(nil) - end - should 'get module result root when project name is give' do module_result = mock Kalibro::Client::ModuleResultClient.expects(:module_result).with(@content, @project.name). -- libgit2 0.21.2