Sha256: 90a8ef3b4366a1d441e183a0303a2407fb8b3ab3deb853b31cda5613b3a75953

Contents?: true

Size: 669 Bytes

Versions: 63

Compression:

Stored size: 669 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 'application'
include Rhoconnect

require 'rhoconnect/test_methods'

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

Version data entries

63 entries across 21 versions & 1 rubygems

Version Path
rhoconnect-3.4.5 bench/blobapp/spec/spec_helper.rb
rhoconnect-3.4.5 generators/templates/application/spec/spec_helper.rb
rhoconnect-3.4.5 bench/benchapp/spec/spec_helper.rb
rhoconnect-3.4.4 bench/blobapp/spec/spec_helper.rb
rhoconnect-3.4.4 bench/benchapp/spec/spec_helper.rb
rhoconnect-3.4.4 generators/templates/application/spec/spec_helper.rb
rhoconnect-3.4.3 bench/blobapp/spec/spec_helper.rb
rhoconnect-3.4.3 generators/templates/application/spec/spec_helper.rb
rhoconnect-3.4.3 bench/benchapp/spec/spec_helper.rb
rhoconnect-3.4.2 bench/benchapp/spec/spec_helper.rb
rhoconnect-3.4.2 generators/templates/application/spec/spec_helper.rb
rhoconnect-3.4.2 bench/blobapp/spec/spec_helper.rb
rhoconnect-3.3.6 bench/blobapp/spec/spec_helper.rb
rhoconnect-3.3.6 generators/templates/application/spec/spec_helper.rb
rhoconnect-3.3.6 bench/benchapp/spec/spec_helper.rb
rhoconnect-3.3.5 bench/blobapp/spec/spec_helper.rb
rhoconnect-3.3.5 generators/templates/application/spec/spec_helper.rb
rhoconnect-3.3.5 bench/benchapp/spec/spec_helper.rb
rhoconnect-3.3.4 bench/blobapp/spec/spec_helper.rb
rhoconnect-3.3.4 generators/templates/application/spec/spec_helper.rb