Sha256: 6b71595b9acc018b5d44e5b4f9f3ac1d2a92af2a6f66f6421d3ebd5b215f87e8

Contents?: true

Size: 906 Bytes

Versions: 21

Compression:

Stored size: 906 Bytes

Contents

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

require 'simplecov'
SimpleCov.start do
  add_filter '/spec/'
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

21 entries across 21 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 bench/spec/bench_spec_helper.rb
rhoconnect-7.5.1 bench/spec/bench_spec_helper.rb
rhoconnect-7.4.1 bench/spec/bench_spec_helper.rb
rhoconnect-7.1.17 bench/spec/bench_spec_helper.rb
rhoconnect-6.2.0 bench/spec/bench_spec_helper.rb
rhoconnect-6.0.11 bench/spec/bench_spec_helper.rb
rhoconnect-5.5.18 bench/spec/bench_spec_helper.rb
rhoconnect-5.5.17 bench/spec/bench_spec_helper.rb
rhoconnect-5.5.15 bench/spec/bench_spec_helper.rb
rhoconnect-5.5.0.22 bench/spec/bench_spec_helper.rb
rhoconnect-5.5.2 bench/spec/bench_spec_helper.rb
rhoconnect-5.5.0.7 bench/spec/bench_spec_helper.rb
rhoconnect-5.5.0.3 bench/spec/bench_spec_helper.rb
rhoconnect-5.5.0 bench/spec/bench_spec_helper.rb
rhoconnect-5.1.1 bench/spec/bench_spec_helper.rb
rhoconnect-4.0.4 bench/spec/bench_spec_helper.rb
rhoconnect-4.0.3 bench/spec/bench_spec_helper.rb
rhoconnect-4.0.2 bench/spec/bench_spec_helper.rb
rhoconnect-4.0.1 bench/spec/bench_spec_helper.rb
rhoconnect-4.0.0 bench/spec/bench_spec_helper.rb