Permalink
Browse files

Update specs to create users with 8 char passwords.

  • Loading branch information...
1 parent d71889d commit 777eaebf64a8544b351ff0adfcd7225b105a6bbc Blaž Hrastnik committed Dec 8, 2012
@@ -3,7 +3,7 @@
feature "Account Creation" do
scenario "Sign up" do
visit sign_up_page
- fill_in_sign_up_form(:email => "joe@doe.com", :name => "John Doe", :password => "123456")
+ fill_in_sign_up_form(:email => "joe@doe.com", :name => "John Doe", :password => "12345678")
click_button "Sign up"
page.should have_content("Your account was successfully created. Welcome to Splendid Bacon")
@@ -23,7 +23,7 @@
visit "/"
click_link "Try the Demo"
click_link "Sign up here."
- fill_in_sign_up_form(:email => "joe@doe.com", :name => "John Doe", :password => "123456")
+ fill_in_sign_up_form(:email => "joe@doe.com", :name => "John Doe", :password => "12345678")
click_button "Sign up"
page.should have_content("Your account was successfully created. Welcome to Splendid Bacon")
@@ -2,14 +2,14 @@
feature "Invites" do
background do
- @al = User.create(:email => "al@kiskolabs.com", :name => "Al", :password => "123456")
- @bob = User.create(:email => "bob@kiskolabs.com", :name => "Bob", :password => "123456")
-
+ @al = User.create(:email => "al@kiskolabs.com", :name => "Al", :password => "12345678")
+ @bob = User.create(:email => "bob@kiskolabs.com", :name => "Bob", :password => "12345678")
+
@kisko = @al.organizations.create(:name => "Kisko Labs")
end
scenario "Creating a new invite", :js => true do
- login_as(@al, :password => "123456")
+ login_as(@al, :password => "12345678")
visit organization_page(@kisko.id)
find(:css, "#organization_nav h1 a").click
fill_in "invitation_email", :with => "foo@foo.com"
@@ -20,7 +20,7 @@
scenario "Accepting an invite as a user" do
invite = Invitation.create(:email => @bob.email, :organization => @kisko)
- login_as(@bob, :password => "123456")
+ login_as(@bob, :password => "12345678")
visit accept_invitation_page(invite.token)
click_button "Accept invitation"
page.should have_content("You are now a part of #{invite.organization.name}")
@@ -37,7 +37,7 @@
@kisko.save
member = @kisko.memberships.where(:user_id => @bob.id).first
- login_as(@al, :password => "123456")
+ login_as(@al, :password => "12345678")
visit organization_edit_page(@kisko.id)
find(:xpath, "//li[@id='member_#{member.id}']/span/a").click
@@ -2,7 +2,7 @@
feature "Organizations" do
background do
- @al = User.create(:email => "al@kiskolabs.com", :name => "Al", :password => "123456")
+ @al = User.create(:email => "al@kiskolabs.com", :name => "Al", :password => "12345678")
@kisko = @al.organizations.create(:name => "Kisko Labs")
end
@@ -2,7 +2,7 @@
feature "Projects" do
background do
- @al = User.create(:email => "al@kiskolabs.com", :name => "Al", :password => "123456")
+ @al = User.create(:email => "al@kiskolabs.com", :name => "Al", :password => "12345678")
@al.reset_authentication_token
@al.save
@@ -2,7 +2,7 @@
feature "Timeline" do
background do
- @al = User.create(:email => "al@kiskolabs.com", :name => "Al", :password => "123456")
+ @al = User.create(:email => "al@kiskolabs.com", :name => "Al", :password => "12345678")
@al.reset_authentication_token
@al.save
@@ -2,7 +2,7 @@
feature "Users" do
background do
- @al = User.create(:email => "al@kiskolabs.com", :name => "Al", :password => "123456")
+ @al = User.create(:email => "al@kiskolabs.com", :name => "Al", :password => "12345678")
login_as(@al)
end
@@ -3,7 +3,7 @@
describe Status do
context "GitHub" do
before(:each) do
- @user = User.create(:name => "Chris Wanstrath", :email => "chris@ozmm.org", :password => "123456")
+ @user = User.create(:name => "Chris Wanstrath", :email => "chris@ozmm.org", :password => "12345678")
@organization = @user.organizations.create(:name => "Test")
@project = @organization.projects.create({ :name => "GitHub",
:start => Date.today - 7.days,

0 comments on commit 777eaeb

Please sign in to comment.