spec/integration/shared/by_quarter.rb in by_star-2.2.0.rc1 vs spec/integration/shared/by_quarter.rb in by_star-2.2.0

- old
+ new

@@ -9,11 +9,11 @@ its(:count){ should eq 2 } end context 'timespan' do subject { Event.by_quarter(1) } - its(:count){ should eq 12 } + its(:count){ should eq 13 } end context 'timespan strict' do subject { Event.by_quarter(Date.parse('2014-02-01'), strict: true) } its(:count){ should eq 7 } @@ -21,20 +21,20 @@ context 'with :year option' do context 'point-in-time' do subject { Post.by_quarter(4, year: 2013) } - its(:count){ should eq 1 } + its(:count){ should eq 10 } end context 'timespan' do subject { Event.by_quarter(4, year: 2013) } - its(:count){ should eq 4 } + its(:count){ should eq 13 } end context 'timespan strict' do subject { Event.by_quarter(4, year: 2013, strict: true) } - its(:count){ should eq 0 } + its(:count){ should eq 8 } end end it 'should raise an error when given an invalid argument' do ->{ Post.by_quarter(0) }.should raise_error(ByStar::ParseError, 'Quarter number must be between 1 and 4')