Sha256: b7789de94dd32ea5dca15aa951b61ce9d37d6de9c75736cde7bdc369cb9d80d7
Contents?: true
Size: 654 Bytes
Versions: 15
Compression:
Stored size: 654 Bytes
Contents
# encoding: utf-8 require "spec" # so you can run ruby spec/rango/whatever_spec.rb SPEC_ROOT = File.dirname(__FILE__) STUBS_ROOT = File.join(SPEC_ROOT, "stubs") $:.unshift File.join(SPEC_ROOT, "..", "lib") class RecursiveOpenStruct < OpenStruct def initialize(attributes = Hash.new) attributes.each do |key, value| if value.is_a?(Hash) attributes[key] = OpenStruct.new(value) end end super(attributes) end end module Spec module Matchers def match(expected) Matcher.new :match, expected do |expected| match do |actual| actual.match(expected) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems