Sha256: ec70a92c434831107a91679d7622feb2e9be62619835b532c1e5c3f3a74d5b19
Contents?: true
Size: 822 Bytes
Versions: 27
Compression:
Stored size: 822 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' RSpec.describe 'RGhost' do before do @valid_attributes = { valor: 0.0, cedente: 'Kivanio Barbosa', documento_cedente: '12345678912', sacado: 'Claudio Pozzebom', sacado_documento: '12345678900', agencia: '4042', conta_corrente: '61900', convenio: 12_387_989, numero_documento: '777700168' } end it 'Testar se RGhost e GhostScript estão instalados' do # RGhost::Config.config_platform expect(File.exist?(RGhost::Config::GS[:path])).to be_truthy expect(File.executable?(RGhost::Config::GS[:path])).to be_truthy s = `#{RGhost::Config::GS[:path]} -v` expect(s).to match(/^GPL Ghostscript/) s = `#{RGhost::Config::GS[:path]} --version` expect(s).to match(/[8-9]\.[0-9]/) end end
Version data entries
27 entries across 27 versions & 1 rubygems