Allow `on_client` and related methods to be run in RSpec before(:all) blocks
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia tracciando la gestione esistente di RSpec per before_mount, quindi confronta il comportamento di on_client, mount e isomorphic quando page non è disponibile in before(:all). Il lavoro è completo quando queste chiamate vengono accodate ed eseguite una volta o per ogni spec in base a no_reset, e viene coperta anche la forma proposta di spec-block.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
ATM if you run on_client, mount and isomorphic methods in before(:all) blocks they just don't do anything, because the capybara page is not loaded yet.
What should happen is that the args to those methods should be queued up and added in a mechanism similar what before_mount uses.
A note (that also applies to before_mount) is that if no_reset is false, then this action should repeat on each spec, but if no_reset is true, then it should only happen once.
before(:all) do
on_client do
puts 'hello world'
end
end
if no_reset is true, then 'hello world' will be displayed just once on the client, if no_reset is false then it will be displayed as each spec runs.
NOW... given all this, it would seem that what we really want to do is also make these methods (and before_mount) all available at the spec block level, which would mean that they run in a before(:all) block. So the above could be shortened to
on_client do # before(:all) is implicit
puts 'hello world'
end
- Lingua principale
- JavaScript
- Stelle
- 538
- Fork
- 41
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hyperstack-org/hyperstack
-
expose_as_operations method Apertaenhancement needs doc
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
hyperstack-org/hyperstack#359 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
hyperstack-org/hyperstack#267 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
hyperstack-org/hyperstack#457 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
hyperstack-org/hyperstack#456 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
hyperstack-org/hyperstack#455 · 2 commenti ·
Tutte le issue di hyperstack-org/hyperstack
Issue simili
-
ai-observability bug team/ai-observability
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
AllTheMods/ATM-10-L#19 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
SignalK/n2k-signalk#345 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
JuliaPluto/PlutoPlotly.jl#72 ·