Merge 4d4736f042 into 424b1302cb
This commit is contained in:
commit
211410b6f0
33 changed files with 621 additions and 91 deletions
18
spec/helpers/payments_helper_spec.rb
Normal file
18
spec/helpers/payments_helper_spec.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe PaymentsHelper, type: :helper do
|
||||
describe '#months' do
|
||||
it 'returns the correct strings for months' do
|
||||
expect(months).to match_array(Array([['1 - January', 1], ['2 - February', 2], ['3 - March', 3],
|
||||
['4 - April', 4], ['5 - May', 5], ['6 - June', 6],
|
||||
['7 - July', 7], ['8 - August', 8], ['9 - September', 9],
|
||||
['10 - October', 10], ['11 - November', 11], ['12 - December', 12]]))
|
||||
end
|
||||
end
|
||||
|
||||
describe '#years' do
|
||||
it 'returns the correct set of options' do
|
||||
expect(years).to match_array(Array(Date.current.year..Date.current.year + 15))
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue