Advertisement
Guest User

Untitled

a guest
Feb 10th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. Failures:
  2.  
  3. 1) User holiday leave accumulation should not have 8 hours holiday leave earned if user worked less than 8 hours on observed holiday
  4. Failure/Error:
  5. expect(holiday_stats).to eq [{:date => @date, :actual => BigDecimal.new(2, 13), :leave_earned => 8, :additional => 4,
  6. :total => 12, :used => 6.0, :accounts => "", :accumulate => 6,
  7. :paid => 0, :regular => 0.0}]
  8.  
  9. 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}]
  10. 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)>)}]
  11.  
  12. (compared using ==)
  13.  
  14. Diff:
  15.  
  16.  
  17.  
  18. @@ -1,11 +1,11 @@
  19. [{:date=>Fri, 01 Jan 2016,
  20. - :actual=>2.0 (#<BigDecimal:7fb074789228,'0.2E1',9(36)>),
  21. + :actual=>2.0 (#<BigDecimal:7fb074768370,'0.2E1',9(27)>),
  22. :leave_earned=>8,
  23. :additional=>4,
  24. :total=>12,
  25. - :used=>6.0,
  26. + :used=>6.0 (#<BigDecimal:7fb074762da8,'0.6E1',9(27)>),
  27. :accounts=>"",
  28. - :accumulate=>6,
  29. + :accumulate=>6.0 (#<BigDecimal:7fb0747628d0,'0.6E1',9(27)>),
  30. :paid=>0,
  31. - :regular=>0.0}]
  32. + :regular=>2.0 (#<BigDecimal:7fb0747696d0,'0.2E1',9(27)>)}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement