hyperstack-org / hyperstack-org/hyperstack
cannot do a "one liner" with Hyperspec before_mount method
未關閉
bug
- 主要語言
- JavaScript
- 星號
- 538
- 分支
- 41
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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
貢獻指南
評估
這個 Issue 還沒有評估資料。