Skip to content

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

@jenseng

Description

@jenseng

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 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions