templates/devise/cucumber.rb in bear-0.0.1 vs templates/devise/cucumber.rb in bear-0.0.2

- old
+ new

@@ -1,7 +1,8 @@ +run 'rm spec/fabricators/users_fabricator.rb' -create_file 'spec/fabricators/user.rb' do +create_file 'spec/fabricators/users_fabricator.rb' do <<-'FILE' Fabricator(:user) do name { Fabricate.sequence(:name) { |i| "Bear #{i}" } } email { Fabricate.sequence(:email) { |i| "user#{i}@yoursite.com" } } password "password" @@ -14,11 +15,11 @@ email "admin@yoursite.com" password "password" end Fabricator(:member, :from => :user) do - email "member@quickleft.com" + email "member@yoursite.com" password "password" end FILE end @@ -32,19 +33,19 @@ end Given /^a logged in admin user$/ do Fabricate(:admin) visit(new_user_session_path) - fill_in("user[email]", :with => "quickleft@quickleft.com") + fill_in("user[email]", :with => "admin@yoursite.com") fill_in("user[password]", :with => "password") click_button("Sign in") end Given /^a logged in member user$/ do Fabricate(:member) visit(new_user_session_path) - fill_in("user[email]", :with => "member@quickleft.com") + fill_in("user[email]", :with => "member@yoursite.com") fill_in("user[password]", :with => "password") click_button("Sign in") end When /^I log out$/ do @@ -76,17 +77,17 @@ So that I can still login if I forget it Scenario: Follow forget your password link Given the following user records | email | - | forgot@quickleft.com | + | forgot@yoursite.com | When I am on the login page And I follow "Forgot your password?" - And I fill in "Email" with "forgot@quickleft.com" + And I fill in "Email" with "forgot@yoursite.com" And I press "Send me reset password instructions" Then I should see "You will receive an email with instructions about how to reset your password in a few minutes." - And 1 emails should be delivered to forgot@quickleft.com + And 1 emails should be delivered to forgot@yoursite.com When I click the first link in the email And I fill in "Password" with "myNewP@ssword" And I fill in "Password confirmation" with "myNewP@ssword" And I press "Change my password" Then I should see "Your password was changed successfully. You are now signed in." @@ -101,16 +102,16 @@ So that I can activate my account if I lost the original email Scenario: Follow resend verification email Given the following user records | email | confirmed_at | - | resend@quickleft.com | nil | + | resend@yoursite.com | nil | When I am on the login page And I follow "Didn't receive confirmation instructions?" - And I fill in "Email" with "resend@quickleft.com" + And I fill in "Email" with "resend@yoursite.com" And I press "Resend confirmation instructions" Then I should see "You will receive an email with instructions about how to confirm your account in a few minutes." - And 2 emails should be delivered to resend@quickleft.com + And 2 emails should be delivered to resend@yoursite.com When I click the first link in the email Then I should see "Your account was successfully confirmed. You are now signed in." FILE end