zold 0.13.45 → 0.13.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zold/node/front.rb +2 -2
- data/lib/zold/version.rb +1 -1
- data/test/node/test_front.rb +11 -3
- 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: 625ff3a7512954db5e783a2fb126775e0fd92faa
|
4
|
+
data.tar.gz: d959c632de322a3ff1ddaa489a4b3d0abbebe739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0558d0d5bf65cb36fd726b1a6e1ffe89a69c6f804001c46226aac260a086bf83be248271cb4bb32d8bcd19edb73edff8c800cb0c0aec85f90d61798cdbc69c5
|
7
|
+
data.tar.gz: 6b06b4e039bbac0a7d421dba1b096322aab860f5b512abfb7d6bbdbfade89837b762b6345a698edc596acd5fdbd85111974c3c3af1f2fc279a81c386e8727609
|
data/lib/zold/node/front.rb
CHANGED
@@ -184,8 +184,8 @@ module Zold
|
|
184
184
|
wallet.txns.map(&:to_text).join("\n"),
|
185
185
|
'',
|
186
186
|
'--',
|
187
|
-
|
188
|
-
|
187
|
+
"Balance: #{wallet.balance.to_zld}",
|
188
|
+
"Transactions: #{wallet.txns.count}"
|
189
189
|
].join("\n")
|
190
190
|
end
|
191
191
|
|
data/lib/zold/version.rb
CHANGED
data/test/node/test_front.rb
CHANGED
@@ -74,13 +74,21 @@ class FrontTest < Minitest::Test
|
|
74
74
|
# cause and fix it properly: http://www.rultor.com/t/14887-396655530
|
75
75
|
def test_renders_wallet_pages
|
76
76
|
skip
|
77
|
-
|
78
|
-
|
77
|
+
FakeHome.new.run do |home|
|
78
|
+
FakeNode.new(log: test_log).run(['--ignore-score-weakness']) do |port|
|
79
79
|
wallet = home.create_wallet
|
80
80
|
test_log.debug("Wallet created: #{wallet.id}")
|
81
81
|
response = Zold::Http.new("http://localhost:#{port}/wallet/#{wallet.id}?sync=true").put(File.read(wallet.path))
|
82
82
|
assert_equal('200', response.code, response.body)
|
83
|
-
|
83
|
+
[
|
84
|
+
"/wallet/#{wallet.id}",
|
85
|
+
"/wallet/#{wallet.id}.txt",
|
86
|
+
"/wallet/#{wallet.id}/balance",
|
87
|
+
"/wallet/#{wallet.id}/key"
|
88
|
+
].each do |u|
|
89
|
+
res = Zold::Http.new(u).get
|
90
|
+
assert_equal('200', res.code, res.body)
|
91
|
+
end
|
84
92
|
end
|
85
93
|
end
|
86
94
|
end
|