features/email/email.feature in pickle-0.2.1 vs features/email/email.feature in pickle-0.2.2

- old
+ new

@@ -34,6 +34,27 @@ Scenario: Deliver emails to user Given a user exists with name: "Fred", email: "fred@gmail.com" And the user's email is delivered Then 1 email should be delivered to the user And the email should contain "Dear Fred" - And the email should link to the user's page \ No newline at end of file + And the email should link to the user's page + + Scenario: Following the first link in an email + Given a user exists with name: "Fred", email: "fred@gmail.com" + And an email "cool" with body: "some text <a href='http://example.com/users/1'>example page</a> more text" is delivered to fred@gmail.com + Then 1 email should be delivered to the user + And I click the first link in the email + Then I should be at the user's page + + Scenario: Following a link in an email by url + Given a user exists with name: "Fred", email: "fred@gmail.com" + And an email "cool" with body: "some text <a href='http://example.com/users/1'>example page</a> more text" is delivered to fred@gmail.com + Then 1 email should be delivered to the user + And I follow "example.com/" in the email + Then I should be at the user's page + + Scenario: Following a link in an email by the text + Given a user exists with name: "Fred", email: "fred@gmail.com" + And an email "cool" with body: "some text <a href='http://example.com/users/1'>example page</a> more text" is delivered to fred@gmail.com + Then 1 email should be delivered to the user + And I follow "example page" in the email + Then I should be at the user's page