Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Failures:
- 1) User holiday leave accumulation should not have 8 hours holiday leave earned if user worked less than 8 hours on observed holiday
- Failure/Error:
- expect(holiday_stats).to eq [{:date => @date, :actual => BigDecimal.new(2, 13), :leave_earned => 8, :additional => 4,
- :total => 12, :used => 6.0, :accounts => "", :accumulate => 6,
- :paid => 0, :regular => 0.0}]
- expected: [{:date=>Fri, 01 Jan 2016, :actual=>2.0 (#<BigDecimal:7fb074789228,'0.2E1',9(36)>), :leave_earned=>8, :additional=>4, :total=>12, :used=>6.0, :accounts=>"", :accumulate=>6, :paid=>0, :regular=>0.0}]
- got: [{:date=>Fri, 01 Jan 2016, :actual=>2.0 (#<BigDecimal:7fb074768370,'0.2E1',9(27)>), :leave_earned=>8, :additional=>4, :total=>12, :used=>6.0 (#<BigDecimal:7fb074762da8,'0.6E1',9(27)>), :accounts=>"", :accumulate=>6.0 (#<BigDecimal:7fb0747628d0,'0.6E1',9(27)>), :paid=>0, :regular=>2.0 (#<BigDecimal:7fb0747696d0,'0.2E1',9(27)>)}]
- (compared using ==)
- Diff:
- @@ -1,11 +1,11 @@
- [{:date=>Fri, 01 Jan 2016,
- - :actual=>2.0 (#<BigDecimal:7fb074789228,'0.2E1',9(36)>),
- + :actual=>2.0 (#<BigDecimal:7fb074768370,'0.2E1',9(27)>),
- :leave_earned=>8,
- :additional=>4,
- :total=>12,
- - :used=>6.0,
- + :used=>6.0 (#<BigDecimal:7fb074762da8,'0.6E1',9(27)>),
- :accounts=>"",
- - :accumulate=>6,
- + :accumulate=>6.0 (#<BigDecimal:7fb0747628d0,'0.6E1',9(27)>),
- :paid=>0,
- - :regular=>0.0}]
- + :regular=>2.0 (#<BigDecimal:7fb0747696d0,'0.2E1',9(27)>)}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement