hyperstack-org / hyperstack-org/hyperstack

cannot do a "one liner" with Hyperspec before_mount method

Abierto
#377 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
JavaScript
Estrellas
538
Forks
41
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.