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 🤔
this is due to how once-ler interleaves regular let/before's and once'd ones from the out in...
given:
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 🤔