Skip to content

Instantly share code, notes, and snippets.

module Tire
module Disable
module ClassMethods
def mock_es_response_doc
@mock_es_response_doc ||=
'{"took": 1,"timed_out": false,"_shards": {"total": 5,"successful": 5,"failed": 0},"hits": {"total": 0,"max_score": null,"hits": []}}'
end
def enable! &blk
old_enabled = @tire_enabled || false
@dzhlobo
dzhlobo / gem.rb
Created May 1, 2012 20:40 — forked from wkj/gem.rb
Build and install a gem for testing with Cucumber and Aruba
# Copyright 2011 Solano Labs All Rights Reserved
require 'aruba/api'
class CukeGem
@setup_done = false
class << self
include Aruba::Api