Skip to content
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

before/let from parent group can't resolve let_once'd item #8

Open
jenseng opened this issue Jul 28, 2017 · 0 comments
Open

before/let from parent group can't resolve let_once'd item #8

jenseng opened this issue Jul 28, 2017 · 0 comments
Labels

Comments

@jenseng
Copy link
Contributor

jenseng commented Jul 28, 2017

this is due to how once-ler interleaves regular let/before's and once'd ones from the out in...

given:

describe MyClass
  before do
    puts foo.inspect
  end

  context "#lolwut" do
    let_once(:foo) { "yey a foo" }
    ...

the outer before runs before the inner foo has been replayed, so you'll just see nil. probably need to rethink how this all works 🤔

@jenseng jenseng added the bug label Jul 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant