Sha256: 498f7baee5dd60ba95073662525b2b6aff6b62755adf1237a08b9b8efd36f589

Contents?: true

Size: 970 Bytes

Versions: 6

Compression:

Stored size: 970 Bytes

Contents

require 'rubygems'
require 'rspec'
require 'excon'
$:.unshift File.join(File.dirname(__FILE__),'..')
$:.unshift File.join(File.dirname(__FILE__),'..','lib')

if RUBY_VERSION =~ /1.9/ || defined?(JRUBY_VERSION)
  require 'simplecov'
  SimpleCov.start do
    add_filter '/spec/'
  end
end

require 'bench/logging'
require 'bench/mock_client'
require 'bench/utils'
require 'bench/result'
require File.join(File.dirname(__FILE__), '..', '..', 'spec', 'spec_helper')

include Bench

def set_state(state)
  state.each do |dockey,data|
    if data.is_a?(Hash) or data.is_a?(Array)
      Store.put_data(dockey,data)
    else
      Store.put_value(dockey,data)
    end
  end
end

def verify_result(result)
  result.each do |dockey,expected|
    if expected.is_a?(Hash)
      Store.get_data(dockey).should == expected
    elsif expected.is_a?(Array)
      Store.get_data(dockey,Array).should == expected
    else
      Store.get_value(dockey).should == expected
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rhoconnect-3.4.5 bench/spec/bench_spec_helper.rb
rhoconnect-4.0.0.beta.10 bench/spec/bench_spec_helper.rb
rhoconnect-4.0.0.beta.12 bench/spec/bench_spec_helper.rb
rhoconnect-3.4.4 bench/spec/bench_spec_helper.rb
rhoconnect-3.4.3 bench/spec/bench_spec_helper.rb
rhoconnect-3.4.2 bench/spec/bench_spec_helper.rb