Sha256: a0eef305c292ab5e3f046d54d499c0f3246035d4039483f4126263c9239b2f63
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
require 'example_helper' module Examples module CreateInfobase require 'ass_launcher' describe 'Create new 1C:Enterprise application aka "information base"' do extend AssLauncher::Api # Get 1C:Enterprise binary wrapper or fail binary = thicks(PLATFORM_VER).last fail "Enterprise v #{PLATFORM_VER} not installed" if binary.nil? # Build connection string for new infobase. # In this case uses file 1C:Enterprise application type but # we can create infobase on 1C:Enterprise server. For it we should use # Api.cs_srv method which returns server connection string conns = cs_file(file: File.join(Dir.tmpdir,'examples.create_infobase.ib')) # 1C:Enterprise application Template template = Examples::TEMPLATES::CF # Build command whith ArgumentsBuilder command = binary.command(:createinfobase) do connection_string conns useTemplate template _L 'en' end # Running and waiting until process executing # because it executing in forked process process_holder = command.run.wait it 'New infobase created whithout errors' do # verify execution result process_holder.result.verify! # 1C:Enterprise application directory really exists File.directory?(conns.file).must_equal true end after do FileUtils.rm_rf conns.file if File.exist?(conns.file) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ass_launcher-0.7.0 | examples/create_infobase_example.rb |