Sha256: b91b3588be9e1fd765ccba7c09c70b1777b4903ca6bde75e10ffdc23a3552eae

Contents?: true

Size: 874 Bytes

Versions: 2

Compression:

Stored size: 874 Bytes

Contents

# figure out where we are being loaded from
if $LOADED_FEATURES.grep(/spec\/spec_helper\.rb/).any?
  begin
    raise "foo"
  rescue => e
    puts <<-MSG
  ===================================================
  It looks like spec_helper.rb has been loaded
  multiple times. Normalize the require to:

    require "spec/spec_helper"

  Things like File.join and File.expand_path will
  cause it to be loaded multiple times.

  Loaded this time from:

    #{e.backtrace.join("\n    ")}
  ===================================================
    MSG
  end
end

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
#$LOAD_PATH.unshift File.join(File.dirname(__FILE__), %w{.. .. gom-remote lib})
require 'rubygems'
require 'e-meter-gom-daemon'
require 'spec'
require 'spec/autorun'

Spec::Runner.configure do |config|
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
e-meter-gom-daemon-0.2.2 spec/spec_helper.rb
e-meter-gom-daemon-0.2.1 spec/spec_helper.rb