Skip to content

Instantly share code, notes, and snippets.

View generalconsensus's full-sized avatar

Daniel McDermott generalconsensus

  • College Grove, TN
View GitHub Profile
use Behat\Mink\Exception\ElementNotFoundException;
/**
* @Given /^I select "([^"]*)" from "([^"]*)" chosen\.js select box$/
*/
public function iSelectFromChosenJsSelectBox($option, $select) {
$select = $this->fixStepArgument($select);
$option = $this->fixStepArgument($option);
$page = $this->getSession()->getPage();
@generalconsensus
generalconsensus / eu_country_codes.rb
Created June 1, 2012 08:31 — forked from henrik/eu_country_codes.rb
EU (European Union) country codes, ISO 3166-1 alpha-2.
# Note: VAT identification numbers for Greece use "EL", not "GR".
COUNTRY_CODES_EU = %w[
AT BE BG CY CZ DK EE FI FR DE GR HU IE IT
LV LT LU MT NL PL PT RO SK SI ES SE GB
]