hyperstack-org / hyperstack-org/hyperstack

cannot do a "one liner" with Hyperspec before_mount method

Aberta
#377 0 comentários 0 reações 0 responsáveis Ver no GitHub
bug
Linguagem predominante
JavaScript
Estrelas
538
Forks
41
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.