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

Avoiding global configuration change #86

Merged
merged 1 commit into from Nov 5, 2019
Merged

Conversation

BroiSatse
Copy link

@BroiSatse BroiSatse commented Apr 20, 2018

Currently, the cell example group is setting ActionController::Base.allow_forgery_protection to false, without setting it back to the original setting value. While false is rails default, we had agreed to use true in our system as we use a lot of custom non jquery-ujs JS and we need to test they are reading CRSF token correctly and that before block has quite screwed us for some time.

Tests should always avoid changing global objects (Well, we should avoid global objects, but can't help much for that) whenever possible.

@seuros
Copy link
Member

seuros commented Apr 20, 2018

@BroiSatse This looks good to me.

this commit seem unconfigured /unlinked to your github account. You can fix it before we merge it.

@BroiSatse
Copy link
Author

@seuros - Fixed.

@apotonick
Copy link
Member

@seuros Should we move this to the trailblazer orga?

@seuros
Copy link
Member

seuros commented Apr 20, 2018

@BroiSatse Thank you
@apotonick sure thing.

@BroiSatse
Copy link
Author

@seuros @apotonick - Any chance on getting that merged in? I'd love to remove git reference from our Gemfile. :)

@seuros seuros merged commit 171ff0c into trailblazer:master Nov 5, 2019
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.

None yet

3 participants