Skip to content

Commit 02134c9

Browse files
committed
use regex to not depend on devise locales in resetting_password feature
1 parent 9239023 commit 02134c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/step_definitions/web_steps.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def with_scope(locator)
5151
attach_file(field, File.expand_path(path))
5252
end
5353

54-
Then /^(?:I )should( not)? see( the element)? "([^"]*)"$/ do |negate, is_css, text|
54+
Then /^(?:I )should( not)? see( the element)? \"|\/([^"]*)\"|\/$/ do |negate, is_css, text|
5555
should = negate ? :should_not : :should
5656
have = is_css ? have_css(text) : have_content(text)
5757
page.send should, have

features/users/resetting_password.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Feature: User Resetting Password
1515
And I follow "Forgot your password?"
1616
When I fill in "Email" with "admin@example.com"
1717
And I press "Reset My Password"
18-
Then I should see "You will receive an email with instructions about how to reset your password in a few minutes."
18+
Then I should see /You will receive .* email with instructions about how to reset your password in a few minutes./
1919

2020
Scenario: Changing password after resetting
2121
When "admin@example.com" requests a pasword reset with token "foobarbaz"

0 commit comments

Comments
 (0)