Skip to content

Commit

Permalink
added failing feature for editing handle; added edit button on profile
Browse files Browse the repository at this point in the history
  • Loading branch information
drewolson authored and qrush committed Jun 27, 2010
1 parent bea06a3 commit bb89507
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions features/edit_profile.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Feature: Edit Profile
In order to keep their information up-to-date
A user
Should be able to edit their profile

@wip
Scenario: Edit Handle
Given I have signed in with "john@example.com/password"
And my handle is "johndoe"
And I am on my profile page

When I follow "Edit"
And I fill in "Handle" with "john"
And I press "Update"

Then I should see my new "Handle"
4 changes: 4 additions & 0 deletions features/step_definitions/clearance_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
:password_confirmation => password)
end

Given /^my handle is "([^\"]*)"$/ do |handle|
@me.update_attributes!(:handle => handle)
end

# Session

Then /^I should be signed in$/ do
Expand Down

0 comments on commit bb89507

Please sign in to comment.