Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store routing context when mounting engine, Fix i18n path #14

Merged
merged 10 commits into from
Mar 8, 2018
Prev Previous commit
Next Next commit
Fix lint issue (line too long)
  • Loading branch information
Gregory Igelmund committed Mar 7, 2018
commit fbc7e1711efaa9be08b385c6c03d913291b6ea7a
4 changes: 3 additions & 1 deletion test/integration/navigation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class NavigationTest < ActionDispatch::IntegrationTest
},
headers: { 'HTTP_USER_AGENT' => 'Mosaic v.1' }
assert_equal 200, status
assert response.body.include?('If we found you in the system, we have sent you an email.')
assert response.body.include?(
'If we found you in the system, we have sent you an email.'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

response.body.include?('If we found you in the system') could be another solution to the ' business.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea.. I tried swapping the i18n backend/translations or stubbing the calls to it but everything turned out to be extremely cumbersome for this single case.

So eventually I like to go w/ your proposed way of checking for the string partial.

)

# Expect session created for alice
session = Passwordless::Session.find_by! authenticatable: alice
Expand Down