Sha256: b483a7c2fb7c6ac912f7fbe05ec72bf94408435077a223f11d4aaeb1d5104ebd

Contents?: true

Size: 1.19 KB

Versions: 19

Compression:

Stored size: 1.19 KB

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 'omf_ec'

# Default fixture directory
FIXTURE_DIR = "#{File.dirname(__FILE__)}/fixture"

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

# Reading fixture file
def fixture(name)
  File.read("#{FIXTURE_DIR}/#{name.to_s}")
end

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

class OmfEc::Experiment
  def self.reset
    instance.instance_eval do
      @groups = []
      @events = []
      @app_definitions = Hashie::Mash.new
      @sub_groups = Hashie::Mash.new
      @cmdline_properties = Hashie::Mash.new
    end
  end
end

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


Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
omf_ec-6.1.2.pre.3 test/test_helper.rb
omf_ec-6.1.2.pre.2 test/test_helper.rb
omf_ec-6.1.2.pre test/test_helper.rb
omf_ec-6.1.1 test/test_helper.rb
omf_ec-6.1.1.pre test/test_helper.rb
omf_ec-6.1.0 test/test_helper.rb
omf_ec-6.0.8.pre.5 test/test_helper.rb
omf_ec-6.0.7.1 test/test_helper.rb
omf_ec-6.0.8.pre.4 test/test_helper.rb
omf_ec-6.0.8.pre.3 test/test_helper.rb
omf_ec-6.0.8.pre.2 test/test_helper.rb
omf_ec-6.0.8.pre.1 test/test_helper.rb
omf_ec-6.0.7 test/test_helper.rb
omf_ec-6.0.6 test/test_helper.rb
omf_ec-6.0.5 test/test_helper.rb
omf_ec-6.0.4 test/test_helper.rb
omf_ec-6.0.4.pre.1 test/test_helper.rb
omf_ec-6.0.3 test/test_helper.rb
omf_ec-6.0.2 test/test_helper.rb