mudrat_projector 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mudrat_projector/validator.rb +0 -6
- data/lib/mudrat_projector/version.rb +1 -1
- data/test/models/projector_test.rb +0 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22bbbd46167f4233cee6d7d66e0d27981fd2ec37
|
4
|
+
data.tar.gz: 6889680517e59605686eec56110fb17aa7dd0d7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 319cae04c37547d85279b54af9bf1916946afefefe77ab10028eb6d96f1295a37fa8270c7e6f9c2846e054d86220232e84e2b4c0c5232001b27a7fa7df18ee77
|
7
|
+
data.tar.gz: 5ec7b8b16f5a393c924255bb0b922bfab91f69d80ca6bd5a9e21ac0be29848afbc4e7d3b2c82f113db5b33fa47c02c903f98c6c25c75e373ea68635e483c49ef
|
@@ -22,12 +22,6 @@ module MudratProjector
|
|
22
22
|
raise Projector::InvalidAccount, "Account #{account_id.inspect} has "\
|
23
23
|
"invalid type #{params[:type].inspect}"
|
24
24
|
end
|
25
|
-
if params.has_key?(:open_date) && params[:open_date] > projector.from
|
26
|
-
if params.has_key? :opening_balance
|
27
|
-
raise Projector::InvalidAccount, "Account #{account_id.inspect} opens "\
|
28
|
-
"after projector, but has an opening balance"
|
29
|
-
end
|
30
|
-
end
|
31
25
|
end
|
32
26
|
|
33
27
|
def validate_transaction! transaction
|
@@ -72,15 +72,6 @@ class ProjectorAccountsTest < Minitest::Test
|
|
72
72
|
)
|
73
73
|
refute_equal 0, @projector.balance
|
74
74
|
|
75
|
-
assert_raises Projector::InvalidAccount do
|
76
|
-
@projector.add_account(
|
77
|
-
:savings,
|
78
|
-
open_date: jan_2_2000,
|
79
|
-
opening_balance: 500,
|
80
|
-
type: :asset,
|
81
|
-
)
|
82
|
-
end
|
83
|
-
|
84
75
|
@projector.add_account(
|
85
76
|
:estate,
|
86
77
|
open_date: jan_1_2000,
|