Commit 885f0fd635918b600fac1552ca76e0a583adae5f

Authored by Rafael Manzo
2 parents 1cde5838 ce694f9c

Merge pull request #158 from jgbs/issue37

Closes issue #37. Deleting the undefined return of the repository_helper...
app/helpers/repository_helper.rb
... ... @@ -12,7 +12,6 @@ module RepositoryHelper
12 12 unless periodicity_label.nil?
13 13 return periodicity_label.first
14 14 end
15   - return "Undefined"
16 15 end
17 16  
18 17 def day_options
... ...
spec/helpers/repository_helper_spec.rb
... ... @@ -18,10 +18,6 @@ describe RepositoryHelper, :type => :helper do
18 18 it 'should return the periodicity option associated to the given number' do
19 19 expect(helper.periodicity_option(1)).to eq "1 day"
20 20 end
21   -
22   - it 'should return Undefined when there is no periodicity value' do
23   - expect(helper.periodicity_option(nil)).to eq "Undefined"
24   - end
25 21 end
26 22  
27 23 describe 'calendar' do
... ...