test/node/test_entrance.rb in zold-0.14.42 vs test/node/test_entrance.rb in zold-0.14.43

- old
+ new

@@ -54,18 +54,20 @@ source = home.create_wallet(sid) home.create_wallet(tid) e = Zold::Entrance.new(home.wallets, home.remotes, home.copies(source).root, 'x', log: test_log) modified = e.push(source.id, body) assert_equal(2, modified.count) + assert(modified.include?(sid)) + assert(modified.include?(tid)) end end def test_renders_json FakeHome.new.run do |home| wallet = home.create_wallet e = Zold::Entrance.new(home.wallets, home.remotes, home.copies.root, 'x', log: test_log) e.push(wallet.id, File.read(wallet.path)) assert(e.to_json[:history].include?(wallet.id.to_s)) - assert(e.to_json[:speed].positive?) + assert(!e.to_json[:speed].negative?) end end end