title: Running protractor from rails tests
body: <p>I'm using RSpec to run uint tests on my Rails application and I would like to implement some Protractor test for the angular side of the application. </p>
  
  <p>Now my questions are:</p>
  
  <ol>
  <li>How to setup so that RSpec and Protractor test are executed with one command</li>
  <li>Can I run protractor tests from RSpec test and do some server-side assertion after Protractor tests</li>
  <li>If 2) is not easy or trivial, what would be the best way to run the Protractor tests on test db and make sure it get cleaned between each run</li>
  </ol>
  
  <p>The issue I have is that Protractor should be run against the real backend (which is actually good because I don't want to mock things) but I'm not sure how to be sure that create and update calls from my angular code actual create the data. </p>