I'm following the FlatIron code to an extent and trying my first rspec
using the request method as described in
http://atmos.org/index.php/2008/11/29/merb-10-controller-testing/

I have a first spec of

describe "Signup up for an account" do
  it "display a form requesting your email address" do
    response = request("/users/new")
    response.should be_successful
    #response.should have_selector("form[action='/users']
[method='post']")
    #response.should have_selector("input#email_unconfirmed
[type='text'][name='email'][value='']")
  end
end

The line "response.should be_successful" ends with error:

Expected a GET to 'http://example.org/users/new' to be successful, but
it returned a 404

I'm not sure what's happening yet, but my app is structured to force
http requests to get redirected to https for this request.
Is there some further tricks I need to know to have my requests routed
through my nginx proxy in order to handle the https?

I am only guess that this is the problem in this case.  Its my first
rspec.

thanks, Jon


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to