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

Remove order-dependency from locale specs #2687

Merged
merged 1 commit into from
Apr 10, 2018

Conversation

gevann
Copy link

@gevann gevann commented Apr 9, 2018

Previously, bundle exec rspec --seed 13070 --format documentation would fail in the front-end app due to test ordering. This PR removes this order dependency.

@@ -10,6 +10,7 @@
end

after do
I18n.locale = :en #reset locale after each spec.

Choose a reason for hiding this comment

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

Layout/LeadingCommentSpace: Missing space after #.

@gevann gevann force-pushed the fixup-order-dependent-specs branch from 7f135cc to 73c982e Compare April 9, 2018 18:28
This commit removes an implicit order dependency in the frontend locale
specs.
@gevann gevann force-pushed the fixup-order-dependent-specs branch from 73c982e to 7d9f131 Compare April 9, 2018 20:56
Copy link
Contributor

@jhawthorn jhawthorn left a comment

Choose a reason for hiding this comment

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

I'm okay with this, but it seems a little odd here given that nothing here changes the I18n.locale. I this the mistake here is arguably in controller_helpers_spec, which shouldn't test I18n.locale before making a request.

It might even make more sense in the spec_helper.

@jhawthorn jhawthorn merged commit 30ba2a3 into solidusio:master Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants