Permalink
Browse files

Updating profile features to deal with HTTPS changes

  • Loading branch information...
1 parent c7b7089 commit de467a8050b83d6bee8f889b74174c5c370fe19a @qrush qrush committed Oct 16, 2010
View
@@ -36,6 +36,7 @@ group :test do
gem "database_cleaner", "0.5.2"
gem "fakeweb", "1.2.6"
+ gem "launchy", "0.3.7"
gem "nokogiri", "1.4.3.1"
gem "rack-test", "0.5.4", :require => "rack/test"
gem "redgreen", "1.2.2"
View
@@ -47,6 +47,7 @@ GEM
builder (2.1.2)
clearance (0.9.0.rc9)
rails (~> 3.0.0)
+ configuration (1.1.0)
cucumber (0.8.5)
builder (~> 2.1.2)
diff-lcs (~> 1.1.2)
@@ -85,6 +86,9 @@ GEM
i18n (0.4.1)
json (1.2.0)
json_pure (1.4.6)
+ launchy (0.3.7)
+ configuration (>= 0.0.5)
+ rake (>= 0.8.1)
mail (2.2.5)
activesupport (>= 2.3.6)
mime-types
@@ -160,6 +164,7 @@ DEPENDENCIES
high_voltage (= 0.9.1)
hoptoad_notifier (= 2.2.0)
json (= 1.2.0)
+ launchy (= 0.3.7)
newrelic_rpm (= 2.13.0.beta6)
nokogiri (= 1.4.3.1)
paul_revere (= 0.1.5)
View
@@ -114,16 +114,16 @@
t.string "remember_token", :limit => 128
t.datetime "created_at"
t.datetime "updated_at"
- t.boolean "email_reset"
t.string "handle"
+ t.boolean "email_reset"
t.string "website"
t.string "location"
t.text "bio"
end
+ add_index "users", ["confirmation_token", "id"], :name => "index_users_on_id_and_confirmation_token"
add_index "users", ["email"], :name => "index_users_on_email"
add_index "users", ["handle"], :name => "index_users_on_handle"
- add_index "users", ["id", "confirmation_token"], :name => "index_users_on_id_and_confirmation_token"
add_index "users", ["id", "token"], :name => "index_users_on_id_and_token"
add_index "users", ["remember_token"], :name => "index_users_on_remember_token"
add_index "users", ["token"], :name => "index_users_on_token"
@@ -3,9 +3,11 @@ Feature: Edit Profile
A user
Should be able to edit their profile
- Scenario: Edit Handle
+ Background:
Given I am using HTTPS
- And I have signed in with "john@example.com/password"
+
+ Scenario: Edit Handle
+ Given I have signed in with "john@example.com/password"
And my handle is "johndoe"
And I am on my edit profile page
When I fill in "Handle" with "john_doe"
@@ -25,6 +27,7 @@ Feature: Edit Profile
Scenario: Edit bio
Given I have signed in with "john@example.com/password"
+ And my handle is "john_doe"
And I am on my edit profile page
When I fill in "Bio" with "When are we going to eat"
And I press "Update"
View
@@ -3,6 +3,9 @@ Feature: Profile Feature
As a user
I want to see a page with all of my gems
+ Background:
+ Given I am using HTTPS
+
Scenario: Show Profile
Given I have signed in with "jon@example.com/password"
And a rubygem exists with a name of "sandworm"
@@ -31,10 +34,9 @@ Feature: Profile Feature
And I should see "3 today"
Scenario: Show Profile
- Given a user exists with an email of "jon@example.com"
+ Given I have signed in with "bob@example.com/password"
+ And a user exists with an email of "jon@example.com"
And a rubygem exists with a name of "sandworm"
And the "sandworm" rubygem is owned by "jon@example.com"
When I go to "jon@example.com" profile page
Then I should see "sandworm"
-
-
@@ -10,6 +10,7 @@
And /^I save and open the page$/ do
save_and_open_page
+ print @response.body
end
Then /^I should see the following most recent downloads:$/ do |table|
@@ -14,7 +14,7 @@ def path_to(page_name)
when /my edit profile page/
edit_profile_path
when /"([^\"]+)" profile page/
- profile_path(User.first)
+ profile_path(User.find_by_email!($1))
else
raise "Can't find mapping from \"#{page_name}\" to a path."
end
Binary file not shown.
Binary file not shown.

0 comments on commit de467a8

Please sign in to comment.