From 97485e8dfe7f81f01c89d5ba391099ff30dfa92b Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Fri, 29 Jan 2021 08:57:41 +0100 Subject: [PATCH] update tests --- spec/byron_spec.rb | 4 ++-- spec/shelley_spec.rb | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/byron_spec.rb b/spec/byron_spec.rb index 436e439..06ec70a 100644 --- a/spec/byron_spec.rb +++ b/spec/byron_spec.rb @@ -316,7 +316,7 @@ def test_byron_tx(source_wid, target_wid) it "I could calculate migration cost" do id = create_byron_wallet "icarus" cost = BYRON.migrations.cost(id) - expect(cost.code).to eq 403 + expect(cost.code).to eq 501 end it "I could migrate all my funds" do @@ -324,7 +324,7 @@ def test_byron_tx(source_wid, target_wid) target_wal_id = create_byron_wallet "icarus" addresses = BYRON.addresses.list(target_wal_id).map{ |a| a['id'] } migr = BYRON.migrations.migrate(id, PASS, addresses) - expect(migr.code).to eq 403 + expect(migr.code).to eq 501 end end end diff --git a/spec/shelley_spec.rb b/spec/shelley_spec.rb index bde3324..0834777 100644 --- a/spec/shelley_spec.rb +++ b/spec/shelley_spec.rb @@ -206,7 +206,7 @@ pool_id = pools.list({stake: 1000})[0]['id'] join = pools.join(pool_id, id, PASS) - expect(join).to include "cannot_cover_fee" + expect(join).to include "not_enough_money" expect(join.code).to eq 403 end @@ -338,7 +338,7 @@ action_join = {action: "join", pool: pid} rnd = SHELLEY.coin_selections.random_deleg wid, action_join - expect(rnd).to include "cannot_cover_fee" + expect(rnd).to include "not_enough_money" expect(rnd.code).to eq 403 end @@ -676,7 +676,7 @@ pools = SHELLEY.stake_pools fees = pools.delegation_fees(id) - expect(fees).to include "cannot_cover_fee" + expect(fees).to include "not_enough_money" expect(fees.code).to eq 403 end end @@ -689,8 +689,8 @@ it "I could calculate migration cost" do id = create_shelley_wallet cost = SHELLEY.migrations.cost(id) - expect(cost).to include "nothing_to_migrate" - expect(cost.code).to eq 403 + expect(cost).to include "not_implemented" + expect(cost.code).to eq 501 end it "I could migrate all my funds" do @@ -698,8 +698,8 @@ target_id = create_shelley_wallet addrs = SHELLEY.addresses.list(target_id).map{ |a| a['id'] } migr = SHELLEY.migrations.migrate(id, PASS, addrs) - expect(migr).to include "nothing_to_migrate" - expect(migr.code).to eq 403 + expect(migr).to include "not_implemented" + expect(migr.code).to eq 501 end end