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