Sha256: 19facd4a44af5fac5a585c841ba7a6ab38aaca0013aa35c9c82c0d867f634fc4
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
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 'rho/settings_controller' 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') Rho::RhoConfig::add_source("Account", {"url"=>"http://rhosync.rhohub.com/sources/1", "source_id"=>1}) Rho::RhoConfig::add_source("Case", {"url"=>"http://rhosync.rhohub.com/sources/2", "source_id"=>2}) Rho::RhoConfig::add_source("Employee", {"url"=>"http://rhosync.rhohub.com/sources/3", "source_id"=>3}) Object::const_set("SYNC_DB_FILE", "../../build/syncdbtest.sqlite") unless defined? SYNC_DB_FILE @rho = Rho::RHO.new(File.dirname(__FILE__) + "/../../../apps/") @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.1 | spec/spec_helper.rb |