title: Rspec before method
body: <p>If a spec file contains this before the it() example groups, what does it mean?</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Which one will be the one that is executed before?</p>
  
  <p>I don't get it.</p>