Sha256: 51e70a39cabadc7e42adb8e61f12e70a6e4baabe87000b6256442fa911b8d767

Contents?: true

Size: 1013 Bytes

Versions: 31

Compression:

Stored size: 1013 Bytes

Contents

# Copyright (c) 2012 National ICT Australia Limited (NICTA).
# This software may be used and distributed solely under the terms of the MIT license (License).
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
# By downloading or using this software you accept the terms and the liability disclaimer in the License.

require 'simplecov'
SimpleCov.start { add_filter "/test" }

gem 'minitest'
require 'minitest/autorun'
require 'minitest/pride'
require 'mocha/setup'

require 'evented-spec'

require 'omf_ec'

# Shut up all the loggers
Logging.logger.root.clear_appenders

def uninit
  OmfEc::Experiment.reset
  OmfEc::ExperimentProperty.reset
  OmfCommon::Eventloop.reset
end

class OmfCommon::Eventloop
  def self.reset
    @@instance = nil
  end
end

class OmfEc::Experiment
  def self.reset
    Singleton.__init__(self)
    self
  end
end

class OmfEc::ExperimentProperty
  def self.reset
    @@properties = Hashie::Mash.new
    @@creation_observers = []
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
omf_ec-6.2.3 test/test_helper.rb
omf_ec-6.2.2 test/test_helper.rb
omf_ec-6.2.1 test/test_helper.rb
omf_ec-6.2.0 test/test_helper.rb
omf_ec-6.2.0.pre.2 test/test_helper.rb
omf_ec-6.2.0.pre.1 test/test_helper.rb
omf_ec-6.1.14.pre.2 test/test_helper.rb
omf_ec-6.1.14.pre.1 test/test_helper.rb
omf_ec-6.1.12 test/test_helper.rb
omf_ec-6.1.11 test/test_helper.rb
omf_ec-6.1.10 test/test_helper.rb
omf_ec-6.1.9 test/test_helper.rb
omf_ec-6.1.9.pre.4 test/test_helper.rb
omf_ec-6.1.9.pre.3 test/test_helper.rb
omf_ec-6.1.9.pre.2 test/test_helper.rb
omf_ec-6.1.8 test/test_helper.rb
omf_ec-6.1.7 test/test_helper.rb
omf_ec-6.1.6 test/test_helper.rb
omf_ec-6.1.6.pre.2 test/test_helper.rb
omf_ec-6.1.6.pre.1 test/test_helper.rb