This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Capybara.add_selector(:test_element) do | |
| xpath { |name| XPath.css("[data-test-element='#{name}']") } | |
| end | |
| module TestElement | |
| def test_element(name) | |
| element(name, :test_element, name.to_s) | |
| end | |
| def test_sections(section_name, section_class, matcher_name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'selenium/webdriver' | |
| class Selenium::WebDriver::Navigation | |
| alias_method :original_to, :to | |
| def to(url) | |
| url = 'file://reset-session-hack' if url == 'about:blank' | |
| original_to(url) | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <script type='text/javascript' src='//code.jquery.com/jquery-1.9.1.js'></script> | |
| <script type='text/javascript' src="http://underscorejs.org/underscore-min.js"></script> | |
| <script type='text/javascript' src="http://backbonejs.org/backbone-min.js"></script> | |
| <script type='text/javascript' src="http://knockoutjs.com/downloads/knockout-3.0.0.js"></script> | |
| </head> | |
| </body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ko.bindingHandlers.chosen = { | |
| init: function(element, valueAccessor, allBindings, viewModel, bindingContext){ | |
| var $element = $(element); | |
| var options = ko.unwrap(valueAccessor()); | |
| if (typeof options === 'object') | |
| $element.chosen(options); | |
| else | |
| $element.chosen(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find ./test -name "*-test.coffee"|xargs sed -i '' -e 's/ it / xit /g' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(console){ | |
| console.save = function(data, filename){ | |
| if(!data) { | |
| console.error('Console.save: No data') | |
| return; | |
| } | |
| if(!filename) filename = 'console.json' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unless File.exist?('Gemfile') | |
| File.write('Gemfile', <<-GEMFILE) | |
| source 'https://rubygems.org' | |
| gem 'rails', '4.1.6' | |
| gem 'rack' | |
| gem 'pg', '0.17.1' | |
| GEMFILE | |
| system 'bundle' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { [9/55928] | |
| 'use strict'; | |
| function showConfirmBox(message, cb) { | |
| var $modal = $('.js-modal-confirm'); | |
| var $btnYes = $modal.find('.js-yes') | |
| var $btnCancel = $modal.find('.js-cancel') | |
| $modal.find('.js-message').text(message) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function codeShipSetVars(vars) { | |
| const $blocks = getBlocks(); | |
| const keys = Object.keys(vars); | |
| function getBlocks() { | |
| return $('.form_block.environment_variable'); | |
| } | |
| function add() { | |
| getBlocks().last().find('button.-good').click(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ./docker-compose.yml | |
| version: "3" | |
| services: | |
| app: | |
| build: . | |
| env_file: | |
| - .env | |
| ports: | |
| - 3000:3000 # app | |
| - 35729:35729 # live reload |
OlderNewer