This file contains 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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This file contains 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
# this post helped here | |
# http://stackoverflow.com/questions/705054/where-do-you-put-your-app-config-files-when-deploying-rails-with-capistrano-and | |
# get your file to the server under shared | |
# then update cap to handle the symlink update | |
namespace :deploy do | |
task :start do ; end | |
task :stop do ; end | |
# this task | |
task :symlink_shared do |
This file contains 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
--- og_access.module 2013-08-13 12:00:30.000000000 -0500 | |
+++ og_access.module.monkey_patched 2013-08-13 12:05:38.000000000 -0500 | |
@@ -167,10 +167,11 @@ | |
// Add public checkbox to node edit form. | |
function og_access_alter_nongroup_form(&$form, $form_state, $node) { | |
- global $user; | |
- | |
+ global $user; | |
// If user has no subscriptions, don't bother with Public checkbox - it's meaningless. |
This file contains 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
/** | |
* File Path | |
* themes/incrediblewp/template-portfolio4col-content.php | |
* This is the alter pages that are Wordpress Pages that then have under it the | |
* Template 4 column like the parking url. | |
*/ | |
// Line 123 | |
<?php | |
$excerpt = get_the_excerpt(); |
This file contains 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
//src/Drupal/BehatEditorSauceLabs/BehatEditorSauceLabsWrapper.inc | |
<?php | |
namespace Drupal\BehatEditorSauceLabs; | |
class BehatEditorSauceLabsWrapper { | |
} |
This file contains 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
/** | |
* @param $string | |
* Features should have trailing lines | |
* 1. The benefits | |
* 2. The role of the user | |
* 3. The description | |
* @return array | |
*/ | |
function behat_editor_string_feature($string, $scenario, $count, $direction) { | |
$results = array(); |
This file contains 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
<?php | |
/** | |
* Implementation of hook_services_resources(). | |
*/ | |
function behat_editor_services_resources() { | |
$path = drupal_get_path('module', 'behat_editor'); | |
return array('behat_editor' => | |
array('targeted_actions' => array( | |
'run' => array( |
This file contains 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
{ | |
"name": "drupal/behat_editor_saucelabs", | |
"type": "drupal-module", | |
"description": "Runs behat tests on saucelabs.", | |
"homepage": "https://github.com/alnutile/behat_editor_saucelabs", | |
"license": "GPL-2.0", | |
"authors": [ | |
{ | |
"name": "Alfred Nutile", | |
"email": "alfrednutile@gmail.com", |
This file contains 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
site = ARGV[0] | |
if site | |
command = %x[heroku addons:add --app #{site} pgbackups] | |
puts "Added PgBackups" | |
command = %x[heroku addons:add --app #{site} heroku-postgresql:basic] | |
pg_info = %x[heroku pg:info --app #{site}] | |
pg_info_to_array = pg_info.split("\n") | |
db_row = pg_info[0].split(" ") | |
database_name = db_row[1] |
This file contains 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
//protected function resolveController($resource, &$operation) | |
if ( $request_method == 'POST' | |
&& $canon_path_count >= 2 | |
&& isset($resource['targeted_actions'][$canonical_path_array[1]]) | |
&& $this->checkNumberOfArguments($canon_path_count, $resource['targeted_actions'][$canonical_path_array[1]], 1) | |
&& !empty($canonical_path_array[0]) | |
) { | |
$operation_type = 'targeted_actions'; | |
$operation = $canonical_path_array[1]; | |
} |