<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,6 +3,7 @@
 
 &lt;%= error_messages_for :person %&gt;
 &lt;% form_for :person, :url =&gt; people_path do |f| -%&gt;
+  &lt;h3&gt;The good old fashioned way&lt;/h3&gt;
 &lt;p&gt;&lt;%= f.label :email %&gt;&lt;br/&gt;
 &lt;%= f.text_field :email %&gt;&lt;/p&gt;
 
@@ -14,3 +15,10 @@
 
 &lt;p&gt;&lt;%= submit_tag 'Sign up' %&gt;&lt;/p&gt;
 &lt;% end -%&gt;
+
+&lt;% form_tag(signup_with_open_id_people_url, :method =&gt; :post) do %&gt;
+  &lt;h3&gt;Using OpenID&lt;/h3&gt;
+  &lt;p&gt;&lt;%= label_tag :openid_url, &quot;Open ID URL&quot; %&gt;&lt;br/&gt;
+    &lt;%= text_field_tag :openid_url %&gt;&lt;/p&gt;
+  &lt;p&gt;&lt;%= submit_tag &quot;Sign up with OpenID&quot; %&gt;&lt;/p&gt;
+&lt;% end %&gt;</diff>
      <filename>app/views/people/new.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -42,3 +42,9 @@ So that actions on the site aren't anonymous
     And the &quot;Email&quot; field should contain &quot;frodo@baggins.net&quot;
     And the &quot;Password&quot; field should be empty
     And the &quot;Confirm password&quot; field should be empty
+
+  Scenario: Using OpenID
+    Given I am on the signup page
+    And I fill in &quot;openid_url&quot; with &quot;http://frodo.myopenid.com&quot;
+    And I press &quot;Sign up with OpenID&quot;
+    Then I should be redirected to &quot;http://www.myopenid.com/server&quot;</diff>
      <filename>features/registration.feature</filename>
    </modified>
    <modified>
      <diff>@@ -117,3 +117,14 @@ end
 Then /^I should be on (.+)$/ do |page_name|
   URI.parse(current_url).path.should == path_to(page_name)
 end
+
+Then /^I should be redirected to &quot;([^\&quot;]*)&quot;$/ do |url|
+  raise ArgumentError, &quot;Cannot verify a URL that has a query parameter: received #{url.inspect}&quot; if url[&quot;?&quot;]
+  expected = URI.parse(url)
+  actual   = URI.parse(response.headers[&quot;Location&quot;])
+
+  # We don't compare the query strings, as they change everytime
+  expected.query = actual.query = &quot;&quot;
+
+  expected.should == actual
+end</diff>
      <filename>features/step_definitions/webrat_steps.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>96c9d507a1f6161cdd1a541fef685c34ccc9a2a7</id>
    </parent>
  </parents>
  <author>
    <name>Fran&#231;ois Beausoleil</name>
    <email>francois@teksol.info</email>
  </author>
  <url>http://github.com/giraffesoft/blank/commit/37db473cec2863e3e066cc4608afaee6e1cdb4c2</url>
  <id>37db473cec2863e3e066cc4608afaee6e1cdb4c2</id>
  <committed-date>2009-05-22T13:03:50-07:00</committed-date>
  <authored-date>2009-05-22T13:03:50-07:00</authored-date>
  <message>Asserted that OpenID registration does something nearly correct</message>
  <tree>3cbc426015e92de864d9d1f8b321713930a03887</tree>
  <committer>
    <name>Fran&#231;ois Beausoleil</name>
    <email>francois@teksol.info</email>
  </committer>
</commit>
