Skip to content

Commit a04b79a

Browse files
committed
weird
1 parent 3f3bf39 commit a04b79a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spec/features/signup.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ Feature: Signing Up for an SSO Account
22
In order to get users involved
33
As a new user
44
Scenario: signing up as a redirect from a consumer
5-
Given I do not have a valid session on the server
5+
Given I am not logged in on the sso provider
66
And a valid consumer and user exists
77
When I request authentication returning to the consumer app
88
Then I should see the login form
99
When I click signup
1010
Then I should see the signup form
1111
When I signup with valid info
12-
Then I should receive a registration url
12+
Then I should receive a registration url via email
1313
When I hit the registration url and provide a password
1414
Then I should be redirected to the consumer app
1515

1616
Scenario: signing up
17-
Given I do not have a valid session on the server
17+
Given I am not logged in on the sso provider
1818
And a valid consumer and user exists
1919
Given I request authentication
2020
Then I should see the login form
2121
When I click signup
2222
Then I should see the signup form
2323
When I signup with valid info
24-
Then I should receive a registration url
24+
Then I should receive a registration url via email
2525
When I hit the registration url and provide a password
2626
Then I should be redirected to the application root

spec/features/step_definitions/signup_steps.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Given /^I do not have a valid session on the server$/ do
1+
Given /^I am not logged in on the sso provider$/ do
22
@user = Hancock::User.new(:email => /\w+@\w+\.\w{2,3}/.gen.downcase,
33
:first_name => /\w+/.gen.capitalize,
44
:last_name => /\w+/.gen.capitalize)
@@ -36,7 +36,7 @@
3636
last_response.status.should eql(200)
3737
end
3838

39-
Then /^I should receive a registration url$/ do
39+
Then /^I should receive a registration url via email$/ do
4040
@confirmation_url = last_response.body.to_s.match(%r!/sso/register/\w{40}!).to_s
4141
@confirmation_url.should_not match(/^\s*$/)
4242
end

0 commit comments

Comments
 (0)