Skip to content

Instantly share code, notes, and snippets.

@kyleburton
kyleburton / ccard.feature
Created June 2, 2011 20:58
Cucumber for testing my Twilio "La Cosa Nostra" IVR
Feature: La Cosa Nostra IVR Workflow
In order to register a credit card I want to call the La Cosa Nostra IVR
and simulate a phone call.
Background: As part of each Scenario I want to set my defaults.
Given my telephone number is "(100) 000-0001"
And I am testing the "CCard" workflow.
And I call the IVR.
Scenario: I register my card in one step and sign up for all services.
@spuklo
spuklo / CaseInsensitiveSubstringMatcher.java
Created November 30, 2015 11:47
Case insensitive substring hamcrest matcher. I've found myself needing such matcher at least 3 times recently, so maybe someone else will also find it useful.
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
public class CaseInsensitiveSubstringMatcher extends TypeSafeMatcher<String> {
private final String subString;
private CaseInsensitiveSubstringMatcher(final String subString) {
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active November 16, 2024 18:12
set -e, -u, -o, -x pipefail explanation