title: Writing rspec test to check form path
body: <p>How can I write a test to check the path on a form?</p>
  
  <p>I'm trying this:</p>
  
  <pre><code>it "has a proper form path given subdomains" do    
    @event = Factory :event
    get events_path(@event), nil,  {'HTTP_HOST' =&gt; 'staging.example.com' }
    page.should have_selector "form", :action =&gt; "secure.staging.example.com"
  end
  </code></pre>
  
  <p>But it doesn't look like my test is working:</p>
  
  <pre><code> Failure/Error: page.should have_selector "form", :action =&gt; "secure.staging.example.com"
     expected css "form" to return something
   # ./spec/requests/events_spec.rb:18:in `block (3 levels) in &lt;top (required)&gt;'
  </code></pre>