<NME> spec_helper.rb
<BEF> # 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|

require "rango"
require "logger"
Rango.logger = Logger.new("/dev/null")

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

Spec::Runner.configure do |config|
  config.before(:all) do
    Rango.environment = "test"
  end
end

<MSG> Updated spec_helper for bundler

<DFF> @@ -1,12 +1,18 @@
 # 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")
 
+begin
+  require_relative "../gems/environment"
+rescue LoadError
+  abort "Run gem bundle --cached"
+end
+
+require "spec" # so you can run ruby spec/rango/whatever_spec.rb
+
 class RecursiveOpenStruct < OpenStruct
   def initialize(attributes = Hash.new)
     attributes.each do |key, value|

Updated spec_helper for bundler