Sha256: f396f83900f87c389c589e57709e0164930191a86f4dd9ef8a27ea66e27ae2e8

Contents?: true

Size: 686 Bytes

Versions: 5

Compression:

Stored size: 686 Bytes

Contents

require 'rubygems'

# Set environment to test
ENV['RACK_ENV'] = 'test'
ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__),'..'))
Bundler.require(:default, ENV['RACK_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

5 entries across 5 versions & 1 rubygems

Version Path
rhoconnect-4.0.4 bench/benchapp/spec/spec_helper.rb
rhoconnect-4.0.3 bench/benchapp/spec/spec_helper.rb
rhoconnect-4.0.2 bench/benchapp/spec/spec_helper.rb
rhoconnect-4.0.1 bench/benchapp/spec/spec_helper.rb
rhoconnect-4.0.0 bench/benchapp/spec/spec_helper.rb