title: syntax error, unexpected '\n', expecting => (SyntaxError)
body: <p>Using RSpec to run some tests, I get the following error:</p>
  
  <pre><code>/spec/requests/booking_applications_spec.rb:13: syntax error, unexpected '\n', expecting =&gt; (SyntaxError)
  </code></pre>
  
  <p>Here's the file:</p>
  
  <p>spec/requests/booking_applications_spec.rb:</p>
  
  <pre><code>require 'spec_helper'
  require "rails_helper"
  
  RSpec.describe "Booking applications", :type =&gt; :request do
  
    describe "POST new booking application" do
  
      it "creates a new booking application" do
        BookingApplication.destroy_all
        BookingApplication.count.should == 0      
  
        params = { format: :json, booking_application: { driver_id: 1 } } #Error
        post :create, :booking_id =&gt; 1, params
  
        BookingApplication.count.should == 1
        response.status.should eq(200)
      end
  
    end
  
  end
  </code></pre>