If a spec file contains this before the it() example groups, what does it mean?
context "when almost full (with one element less than capacity)" do
before(:each) do
@stack = Stack.new
(1..9).each { |n| @stack.push n }
end
end
context "when full" do
before(:each) do
@stack = Stack.new
(1..10).each { |n| @stack.push n }
end
end
Which one will be the one that is executed before?
I don't get it.