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

Version Path
rango-0.1.1.3 spec/spec_helper.rb
rango-0.1.1.2.11 spec/spec_helper.rb
rango-0.1.1.2.10 spec/spec_helper.rb
rango-0.1.1.2.9 spec/spec_helper.rb
rango-0.1.1.2.8 spec/spec_helper.rb
rango-0.1.1.2.7 spec/spec_helper.rb
rango-0.1.1.2.6 spec/spec_helper.rb
rango-0.1.1.2.5 spec/spec_helper.rb
rango-0.1.1.2.4 spec/spec_helper.rb
rango-0.1.1.2.3 spec/spec_helper.rb
rango-0.1.1.2.2 spec/spec_helper.rb
rango-0.1.1.2.1 spec/spec_helper.rb
rango-0.1.1.2 spec/spec_helper.rb
rango-0.1.1.1 spec/spec_helper.rb
rango-0.1.1 spec/spec_helper.rb