Commit ce694f9c6c37b29f2ee0fffda97c1730be038c42
1 parent
6347d197
Exists in
colab
and in
4 other branches
Closes issue #37. Deleting the undefined return of the repository_helper method periodicity_option
Showing
2 changed files
with
0 additions
and
5 deletions
Show diff stats
app/helpers/repository_helper.rb
| @@ -12,7 +12,6 @@ module RepositoryHelper | @@ -12,7 +12,6 @@ module RepositoryHelper | ||
| 12 | unless periodicity_label.nil? | 12 | unless periodicity_label.nil? |
| 13 | return periodicity_label.first | 13 | return periodicity_label.first |
| 14 | end | 14 | end |
| 15 | - return "Undefined" | ||
| 16 | end | 15 | end |
| 17 | 16 | ||
| 18 | def day_options | 17 | def day_options |
spec/helpers/repository_helper_spec.rb
| @@ -18,10 +18,6 @@ describe RepositoryHelper, :type => :helper do | @@ -18,10 +18,6 @@ describe RepositoryHelper, :type => :helper do | ||
| 18 | it 'should return the periodicity option associated to the given number' do | 18 | it 'should return the periodicity option associated to the given number' do |
| 19 | expect(helper.periodicity_option(1)).to eq "1 day" | 19 | expect(helper.periodicity_option(1)).to eq "1 day" |
| 20 | end | 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 | end | 21 | end |
| 26 | 22 | ||
| 27 | describe 'calendar' do | 23 | describe 'calendar' do |