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.
Named subject can be referred from an inside subject block
Example:
describe "list" do
subject(:list) { [1,2,3] }
describe 'first' do
subject(:first_element) { list.first }
it { should eq(1) }
end
end
With the previous implementation, this fails with "stack level too deep".
This error is not obvious and irritating to me.
I believe this behaviour is more natural.
0 commit comments