Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Stachyra committed Jul 10, 2020
1 parent 22d74ad commit 59686c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions spec/shelley_spec.rb
Expand Up @@ -283,7 +283,7 @@
teardown
end

it "Can list stake pools only when stake is provided" do
it "Can list stake pools only when stake is provided", :nightly => true do
pools = SHELLEY.stake_pools
expect(pools.list({stake: 1000}).code).to eq 200

Expand Down Expand Up @@ -358,7 +358,7 @@
expect(join.code).to eq 404
end

it "I could join Stake Pool - if I had enough to cover fee" do
it "I could join Stake Pool - if I had enough to cover fee", :nightly => true do
id = create_shelley_wallet
pools = SHELLEY.stake_pools
pool_id = pools.list({stake: 1000})[0]['id']
Expand All @@ -369,17 +369,15 @@
end

it "I could quit stake pool - if I was delegating" do
id = create_shelley_wallet
pools = SHELLEY.stake_pools
quit = pools.quit(id, PASS)
quit = pools.quit(SPID, PASS)
expect(quit).to include "not_delegating_to"
expect(quit.code).to eq 403
end

it "I could check delegation fees - if I could cover fee" do
id = create_shelley_wallet
pools = SHELLEY.stake_pools
fees = pools.delegation_fees id
fees = pools.delegation_fees SPID
expect(fees).to include "cannot_cover_fee"
expect(fees.code).to eq 403
end
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -28,7 +28,7 @@
PASS = "Secure Passphrase"
# Artificial, non-existing id's
TXID = "1acf9c0f504746cbd102b49ffaf16dcafd14c0a2f1bbb23af265fbe0a04951cc"
SPID = "712dd028687560506e3b0b3874adbd929ab892591bfdee1221b5ee3796b79b70"
SPID = "feea59bc6664572e631e9adfee77142cb51264156debf2e52970cc01"
###
BYRON = CardanoWallet.new.byron
SHELLEY = CardanoWallet.new.shelley
Expand Down

0 comments on commit 59686c7

Please sign in to comment.