Skip to content

cannot do a "one liner" with Hyperspec before_mount method #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
catmando opened this issue Mar 13, 2021 · 0 comments
Open

cannot do a "one liner" with Hyperspec before_mount method #377

catmando opened this issue Mar 13, 2021 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@catmando
Copy link
Contributor

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:

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

change to documentation if its not an easy fix

@catmando catmando added the bug Something isn't working label Mar 13, 2021
@catmando catmando added this to the Post Launch milestone Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant