hyperstack-org / hyperstack-org/hyperstack

cannot do a "one liner" with Hyperspec before_mount method

Aperta
#377 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
JavaScript
Stelle
538
Fork
41
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

this does not work:

`before(:all) { before_mount { .... } }`

the ast search mechanism in `Hyperstack::Internal::ClientExecution#find_block` thinks the outer block i.e. `{ before_mount ... }` is the block its looking for. This probably can only be solved heuristically by checking to see what the method is.

Work around is to say:

```ruby
before(:all) do
before_mount { ... }
end
```

change to documentation if its not an easy fix

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.