Sha256: 120180884bf8ebc3ab14cc24c5c77c3a7321597fab8629e9697e408b2163a39b

Contents?: true

Size: 569 Bytes

Versions: 3

Compression:

Stored size: 569 Bytes

Contents

# coding: utf-8

require 'test/unit'

begin
  require 'rubygems'
  require 'redgreen'
rescue LoadError
end

require 'mocha'

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'kaboom'

def boom_json(name)
  root = File.expand_path(File.dirname(__FILE__))
  Boom::Storage::Json.any_instance.stubs(:save).returns(true)
  Boom::Storage::Json.any_instance.stubs(:json_file).
    returns("#{root}/examples/#{name}.json")
  Boom.use_remote false
  Boom.stubs(:storage).returns(Boom::Storage::Json.new)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kaboom-0.3.3 test/helper.rb
kaboom-0.3.2 test/helper.rb
kaboom-0.3.1 test/helper.rb