From c8b0f7eba7f23880ac316dc8fedd38d2cc3dc59f Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Mon, 20 Dec 2021 21:22:29 +0100 Subject: [PATCH] fix select assets to check --- test/e2e/spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/spec/spec_helper.rb b/test/e2e/spec/spec_helper.rb index b92823ac96c..339a6af138a 100644 --- a/test/e2e/spec/spec_helper.rb +++ b/test/e2e/spec/spec_helper.rb @@ -304,7 +304,7 @@ def assets_balance(assets, options = {}) asset_set = assets.map { |x| { "#{x['policy_id']}#{x['asset_name']}" => x['quantity'] + options[:delta] } }.to_set if assets_to_check - asset_set.select! {|a| assets_to_check.include? a.keys.first} + asset_set.select {|a| assets_to_check.include? a.keys.first}.to_set else asset_set end