From ce694f9c6c37b29f2ee0fffda97c1730be038c42 Mon Sep 17 00:00:00 2001 From: jgbs Date: Fri, 21 Nov 2014 19:25:45 -0200 Subject: [PATCH] Closes issue #37. Deleting the undefined return of the repository_helper method periodicity_option --- app/helpers/repository_helper.rb | 1 - spec/helpers/repository_helper_spec.rb | 4 ---- 2 files changed, 0 insertions(+), 5 deletions(-) diff --git a/app/helpers/repository_helper.rb b/app/helpers/repository_helper.rb index 0bde7a5..eeb5695 100644 --- a/app/helpers/repository_helper.rb +++ b/app/helpers/repository_helper.rb @@ -12,7 +12,6 @@ module RepositoryHelper unless periodicity_label.nil? return periodicity_label.first end - return "Undefined" end def day_options diff --git a/spec/helpers/repository_helper_spec.rb b/spec/helpers/repository_helper_spec.rb index c7f02d9..371b2d7 100644 --- a/spec/helpers/repository_helper_spec.rb +++ b/spec/helpers/repository_helper_spec.rb @@ -18,10 +18,6 @@ describe RepositoryHelper, :type => :helper do it 'should return the periodicity option associated to the given number' do expect(helper.periodicity_option(1)).to eq "1 day" end - - it 'should return Undefined when there is no periodicity value' do - expect(helper.periodicity_option(nil)).to eq "Undefined" - end end describe 'calendar' do -- libgit2 0.21.2