title: Jasmine calling beforeEach after tests
body: <p>I'm writing a Rails app which has the following jasmine spec:</p>
  
  <pre><code>describe "buttons", -&gt;
  
    beforeEach -&gt;
      loadFixtures("foo.html")
      alert("beforeEach: " + $("tr.foo").length)
  
    describe ".hide_foo", -&gt;
      alert(".hide-foo: " + $("tr.foo").length)
      ...
      expect($("tr.foo")).toBeHidden()
  </code></pre>
  
  <p>The spec failed with the error:</p>
  
  <pre><code>TypeError: Cannot call method 'expect' of null
  </code></pre>
  
  <p>So I put in the alerts. First we see ".hide-foo: 0", and then after I close that "beforeEach: 44" comes up. So clearly the error is because we're calling the <code>expect</code> before the fixture is loaded but...why the heck isn't <code>beforeEach</code> executed <em>before each</em> example?</p>
  
  <p>I'm using jasminerice to use the Rails Asset Pipeline to compile my Coffeescript. Versions:</p>
  
  <pre><code>$ bundle show jasmine &amp;&amp; bundle show jasminerice
  /home/tmacdonald/.rvm/gems/ruby-1.9.2-p320/gems/jasmine-1.2.0
  /home/tmacdonald/.rvm/gems/ruby-1.9.2-p320/gems/jasminerice-0.0.9
  </code></pre>
  
  <p>Thanks!</p>