title: Testing if a Jasmine Test Fails
body: <p>I'm trying to write a plugin for <a href="http://jasmine.github.io/" rel="nofollow">Jasmine</a> that allows you to return a promise from a spec and will pass or fail that spec depending on whether or not the promise is fulfilled or rejected.</p>
  
  <p>Of course, I want to write tests to make sure that my plugin works correctly, and to be thorough, I need to make sure that tests fail when the promise is rejected... so how do I make a test pass when I need to make sure that a test "successfully fails"?</p>