Sha256: b2810315b9a4a18c5585557e6405bc41ae62e38ff940b040b8680e0f0027e99b

Contents?: true

Size: 503 Bytes

Versions: 6

Compression:

Stored size: 503 Bytes

Contents

require "bacon"
require "mocha-on-bacon"

__LIB_PATH__ = File.join(File.dirname(__FILE__), "..")
$: << __LIB_PATH__

require "pry"
require "invoker"

ENV["INVOKER_TESTS"] = "true"

def invoker_config
  if Invoker.const_defined?(:CONFIG)
    Invoker::CONFIG
  else
    Invoker.const_set(:CONFIG, mock())
    Invoker::CONFIG
  end
end

def invoker_commander
  if Invoker.const_defined?(:COMMANDER)
    Invoker::COMMANDER
  else
    Invoker.const_set(:COMMANDER, mock())
    Invoker::COMMANDER
  end
end


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
invoker-1.0.2 spec/spec_helper.rb
invoker-1.0.1 spec/spec_helper.rb
invoker-1.0.0 spec/spec_helper.rb
invoker-0.1.2 spec/spec_helper.rb
invoker-0.1.1 spec/spec_helper.rb
invoker-0.1.1.pre spec/spec_helper.rb