You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
It would be nice to have a feature/documentation for the ordering of let! and subject! since it can make a difference.
Personally, I'd prefer they were run last; after all before blocks and before the example.
e.g.
Scenario: subjectbangrunsafterallbeforeblocksatlatestGivenafilenamed"subject_bang_last_spec.rb"with:
"""ruby describe "subject! runslast" do subject! { array.count } let(:array) { [] } before { array.push 1 } describe "nestinggroup" do before { array.push 2 } it { should eq(2) } end end """WhenIrun`rspec subject_bang_last_spec.rb`Thentheexamplesshouldallpass