Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Rails test (Minitest) throws error on css file #22

Closed
prodigerati opened this issue Dec 23, 2014 · 4 comments
Closed

Rails test (Minitest) throws error on css file #22

prodigerati opened this issue Dec 23, 2014 · 4 comments

Comments

@prodigerati
Copy link

When I run controller tests using rails minitest I get the following error:

ActionView::Template::Error: Invalid CSS after "...round: url(data": expected comma, was ":image/svg;base..."

I found the svg reference in the css jquery.scrollbar.css file:

 background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZlZmVmZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmNWY1ZjUiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);

Scrollbar displays correctly in chrome and safari.

@gromo
Copy link
Owner

gromo commented Dec 23, 2014

Maybe your tests do not support url:data as CSS value for background. You can move images outside of css file to gif/jpg files and include them as url.

@gromo gromo added the wontfix label Jan 13, 2015
@mvastola
Copy link
Contributor

Please see Pull Request #25 . This is, in fact, a bug, and is easily fixed.

@mvastola
Copy link
Contributor

I can verify that this is now fixed by #25 .

@prodigerati
Copy link
Author

Thank you! Closing...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants