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, |
"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:
The image to apply the filter.
You can find it here: https://drive.google.com/file/d/1pr4Sih1vFw_Smqm1c86QFgT2nGO0O3gf/view?usp=sharing
You should ulpad it on this path yourtheme/assets/images/clut.jpg
.
import React, { Component } from "react"; | |
import { getFirstAndSecondAction } from "actions/getFirstAndSecondAction"; | |
class MyComponent extends Component { | |
static async getInitialProps({ store }) { | |
// Trigger the saga sequence | |
store.dispatch(getFirstAndSecondAction()); | |
return {}; |