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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix skipping asset maps and reduce test state leakage #13467

Merged
merged 2 commits into from Feb 27, 2017

Conversation

davidsbailey
Copy link
Member

This PR fixes two things related to asset maps:

  1. CDO.pegasus_skip_asset_map was passing tests but didn't actually work in local development -- it was giving urls like http://localhost.code.org:3000/js/en_us/tutorialExplorer_locale.js (which are broken) instead of http://localhost-studio.code.org:3000/assets/js/en_us/tutorialExplorer_locale.js
  2. test_asset_helpers.rb was leaking state into subsequent tests by modifying the AssetMap singleton. This wasn't a current problem but set us up for potential future problems.

Thanks @aoby for tracking down the fix for testing singletons 馃憦

@davidsbailey davidsbailey merged commit c47ea1c into staging Feb 27, 2017
@davidsbailey davidsbailey deleted the fix-skip-asset-map branch February 27, 2017 21:34
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

2 participants