Sha256: f751f427c67261ef759e0eabca54f87851233d51ba9fab3a0bf723d42ff0470a

Contents?: true

Size: 549 Bytes

Versions: 42

Compression:

Stored size: 549 Bytes

Contents

require 'rubygems'

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

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

# Load our rhosync application
require 'application'
include Rhosync

require 'rhosync/test_methods'

describe "SpecHelper", :shared => true do
  include Rhosync::TestMethods
  
  before(:each) do
    Store.db.flushdb
    Application.initializer(ROOT_PATH)
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
rhosync-2.1.18.beta2 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.18.beta1 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.17 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.17.beta7 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.17.beta6 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.17.beta5 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.17.beta4 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.17.beta3 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.17.beta2 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.17.beta1 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.16 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.15 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.14 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.13 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.12 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.11 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.10 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.7 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.6 generators/templates/application/spec/spec_helper.rb
rhosync-2.1.3 generators/templates/application/spec/spec_helper.rb