Sha256: d5bc915e16aadd65278f111d69913e2b6a494b250b55a0d17f5c1749c462fd5c
Contents?: true
Size: 861 Bytes
Versions: 2
Compression:
Stored size: 861 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Date do subject { Date.today } describe '#start_of_frequency' do context 'given valid input' do it 'should return the beginning of the month' do subject.start_of_frequency(:monthly).should eq Date.today.beginning_of_month end end context 'given invalid input' do it 'should return the date' do subject.start_of_frequency(:hippo).should eq Date.today end end end describe '#end_of_frequency' do context 'given valid input' do it 'should return the beginning of the month' do subject.end_of_frequency(:monthly).should eq Date.today.end_of_month end end context 'given invalid input' do it 'should return the date' do subject.end_of_frequency(:hippo).should eq Date.today end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quandl_operation-0.4.2 | spec/lib/quandl/operation/date_spec.rb |
quandl_operation-0.4.2.rc1 | spec/lib/quandl/operation/date_spec.rb |