Sha256: 5a65853da1b64e2c67a722149bd85d84e54cb46242be5b31d77033f12411d854

Contents?: true

Size: 684 Bytes

Versions: 3

Compression:

Stored size: 684 Bytes

Contents

require 'rubygems'

# Set environment to test
ENV['RHO_ENV'] = 'test'
ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__),'..'))
Bundler.require(:default, ENV['RHO_ENV'].to_sym)

# Try to load vendor-ed rhoconnect, otherwise load the gem
begin
  require 'vendor/rhoconnect/lib/rhoconnect'
rescue LoadError
  require 'rhoconnect'
end

$:.unshift File.join(File.dirname(__FILE__), "..")
# Load our rhoconnect application
require 'rhoconnect/application/init'
include Rhoconnect

require 'rhoconnect/test_methods'

shared_examples_for "SpecHelper" do
  include Rhoconnect::TestMethods
  
  before(:each) do
    Store.flush_all
    Application.initializer(ROOT_PATH)
  end  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rhoconnect-4.0.0.beta.24 bench/benchapp/spec/spec_helper.rb
rhoconnect-4.0.0.beta.10 bench/benchapp/spec/spec_helper.rb
rhoconnect-4.0.0.beta.12 bench/benchapp/spec/spec_helper.rb