<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>features/create_admin.feature</filename>
    </added>
    <added>
      <filename>features/logging_in.feature</filename>
    </added>
    <added>
      <filename>features/step_definitions/page_navigation_steps.rb</filename>
    </added>
    <added>
      <filename>features/step_definitions/user_steps.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -7,3 +7,63 @@ Given /^I am logged in$/ do
   click_button &quot;Sign in&quot;
   response.body.should =~ /Login successful/m
 end
+
+Given /^public signups are turned (.*)$/ do |state|
+  case state 
+  when 'on'
+    SITE_CONFIG['open_signups'] = true
+  when 'off'
+    SITE_CONFIG['open_signups'] = false
+  else
+    raise &quot;public signups should be either 'on' or 'off'&quot;
+  end
+end
+
+When &quot;I successfully submit the signup form&quot; do
+  fill_in 'Desired login', :with =&gt; 'reinier'
+  fill_in 'Choose password', :with =&gt; 'abracadabra'
+  fill_in 'Confirm password', :with =&gt; 'abracadabra'
+  click_button
+end
+
+When &quot;I submit signup form with dissimmilar password and confirmation&quot; do
+  fill_in 'Desired login', :with =&gt; 'reinier'
+  fill_in 'Choose password', :with =&gt; 'abracadabra'
+  fill_in 'Confirm password', :with =&gt; 'somethingelse'
+  click_button
+end
+
+Then &quot;I should be an admin&quot; do
+  # just check on the presence of the menu item for managing users
+  Then &quot;I should see \&quot;Manage users\&quot;&quot;
+end
+
+When &quot;I submit the login form as an admin user with an incorrect password&quot; do
+  Given &quot;an admin user exists&quot;
+  fill_in 'Login', :with =&gt; 'admin'
+  fill_in 'Password', :with =&gt; 'incorrectpass'
+  click_button
+end
+
+When &quot;I successfully submit the login form as an admin user&quot; do
+  Given &quot;an admin user exists&quot;
+  fill_in 'Login', :with =&gt; 'admin'
+  fill_in 'Password', :with =&gt; 'abracadabra'
+  click_button
+end
+
+When &quot;Reinier visits the site&quot; do
+  visits '/'
+end
+
+Then &quot;Reinier should see the tasks listing page&quot; do
+  response.should have_tag('title', /list tasks/i)
+end
+
+Then &quot;Reinier should see the login page again&quot; do
+  response.should have_tag('title', /login/i)
+end
+  
+Then &quot;Reinier should see the message Login unsuccessful&quot; do
+  should_see 'Login unsuccessful'
+end
\ No newline at end of file</diff>
      <filename>features/step_definitions/login_steps.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,8 +4,14 @@ module NavigationHelpers
     
     when /the homepage/
       root_path
+    when /the home page/
+      root_path
     when /the statistics page/
       stats_path
+    when /the signup page/
+      &quot;/users/new&quot;
+    when /the login page/
+      login_path
     
     # Add more page name =&gt; path mappings here
     </diff>
      <filename>features/support/paths.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>stories/login/first_run.story</filename>
    </removed>
    <removed>
      <filename>stories/login/logging_in.story</filename>
    </removed>
    <removed>
      <filename>stories/steps/login.rb</filename>
    </removed>
    <removed>
      <filename>stories/steps/users.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>7bdd365ff329d49d59d9c65118a7fd504429b0b8</id>
    </parent>
  </parents>
  <author>
    <name>Reinier Balt</name>
    <email>lrbalt@gmail.com</email>
  </author>
  <url>http://github.com/bsag/tracks/commit/6d1f0341110b79798bf45b5e803f06d0c6a022e2</url>
  <id>6d1f0341110b79798bf45b5e803f06d0c6a022e2</id>
  <committed-date>2009-04-16T23:56:11-07:00</committed-date>
  <authored-date>2009-04-16T23:56:11-07:00</authored-date>
  <message>migrate login stories to cucumber features</message>
  <tree>ddd5900de6a8dc2337dcb607db5b81e5db957d80</tree>
  <committer>
    <name>Reinier Balt</name>
    <email>lrbalt@gmail.com</email>
  </committer>
</commit>
