Sha256: da4f6b433dbc042c9b2d8a00848457e2ebcd8d9dc91d74873b4ff043def64a2a

Contents?: true

Size: 867 Bytes

Versions: 1

Compression:

Stored size: 867 Bytes

Contents

begin
  require 'spec'
rescue LoadError
  require 'rubygems'
  gem 'rspec'
  require 'spec'
end
 
$:.unshift(File.join(File.dirname(__FILE__), '..'))
 
# Use the rubygem for local testing
require 'spec/stubs'
require 'rho/rho'
require 'rhom/rhom'

describe "rho initializer", :shared => true do

  attr_accessor :rhom, :rho

  before(:all) do
    FileUtils.mkdir_p('build')
    FileUtils.cp_r('spec/syncdbtest.sqlite','build/syncdbtest.sqlite')
    Object::const_set("SYNC_DB_FILE", "../../build/syncdbtest.sqlite") unless defined? SYNC_DB_FILE
    @rho = Rho::RHO.new(File.join(File.dirname(File.expand_path(__FILE__)), '../../../apps/app_manifest.txt'))
    @rhom = Rhom::RhomObjectFactory.new
  end

  after(:all) do
    FileUtils.rm_rf('build')
  end

  def array_print(arr)
    arr.each_with_index do |x,i|
      puts "arr[#{i}] = #{x.inspect}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhodes-0.1.3 spec/spec_helper.rb