test/ac_movement.rb in africompta-1.9.11 vs test/ac_movement.rb in africompta-1.9.13.pre.10
- old
+ new
@@ -23,9 +23,16 @@
end
def teardown
end
+ def test_rm_add
+ m = Movements.create('test', Date.today, 1000, @cash, @lending)
+ m.delete
+ Movements.create('test', Date.today, 1000, @cash, @lending)
+ assert_equal 2040, @cash.total.to_i
+ end
+
def test_move
value_cash = @cash.total.to_f
value_lending = @lending.total.to_f
value_income = @income.total.to_f
m = Movements.create('test', Date.today, 1000, @cash, @lending)