A clean workaround for running capybara tests on Rails with assets pipeline enabled.
Original: teamcapybara/capybara#500 (comment)
| // ADOBE BLANK | |
| // http://blog.typekit.com/2013/03/28/introducing-adobe-blank/ | |
| // https://github.com/adobe-fonts/adobe-blank | |
| @font-face { | |
| font-family: AdobeBlank; | |
| src: url('../../assets/fonts/AdobeBlank.eot'); /* IE9 Compat Modes */ | |
| src: url('../../assets/fonts/AdobeBlank.ttf.woff') format('woff'), /* Pretty Modern Browsers */ | |
| url('../../assets/fonts/AdobeBlank.ttf') format('truetype'), /* Safari, Android, iOS */ | |
| } | |
| .hide-text { |
| //------------------------------ | |
| // PARAMETERS, VARIABLES AND FUNCTIONS | |
| // MEDIA QUERIES | |
| $tablet: 640px; | |
| $desktop: 960px; | |
| // COLORS |
| /** | |
| * Susy | |
| * Configuration | |
| */ | |
| $S: ( | |
| columns: 2, | |
| gutters: 1/20, | |
| math: fluid, | |
| output: float, |
| # Helpers for better embedding and manipulation of videos | |
| # Place this code in app/helpers/videos_helper.rb | |
| # Then from any view you can add: | |
| # | |
| # <%= get_video_iframe('http://the.video.url') %> | |
| # | |
| # Optionally you can add width and height. | |
| # | |
| # <%= get_video_iframe('http://the.video.url', '1600px', '900px') %> | |
| # |
| "font", | |
| "font-family", | |
| "font-size", | |
| "font-weight", | |
| "font-style", | |
| "font-variant", | |
| "font-size-adjust", | |
| "font-stretch", | |
| "font-effect", |
| /*! | |
| * pixi-filters - v2.0.2 | |
| * Compiled Thu, 21 Sep 2017 16:00:59 UTC | |
| * | |
| * pixi-filters is licensed under the MIT License. | |
| * http://www.opensource.org/licenses/mit-license | |
| */ | |
| (function(global, factory) { | |
| typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : |
A clean workaround for running capybara tests on Rails with assets pipeline enabled.
Original: teamcapybara/capybara#500 (comment)
| { | |
| // Image Formats | |
| "jpg": "image/jpeg", | |
| "jpeg": "image/jpeg", | |
| "gif": "image/gif", | |
| "png": "image/png", | |
| "bmp": "image/bmp", | |
| "tiff": "image/tiff", | |
| "tif": "image/tiff", |
Getting started:
Related tutorials: