Sha256: 0c78e445daf258dd12f93a11fe82e3d09208818109b03d2b7ab75682ea05f3bd

Contents?: true

Size: 824 Bytes

Versions: 7

Compression:

Stored size: 824 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

7 entries across 7 versions & 1 rubygems

Version Path
brcobranca-8.0.0 spec/brcobranca/rghost_spec.rb
brcobranca-7.3.0 spec/brcobranca/rghost_spec.rb
brcobranca-7.2.2 spec/brcobranca/rghost_spec.rb
brcobranca-7.2.1 spec/brcobranca/rghost_spec.rb
brcobranca-7.2.0 spec/brcobranca/rghost_spec.rb
brcobranca-7.1.0 spec/brcobranca/rghost_spec.rb
brcobranca-7.0.0 spec/brcobranca/rghost_spec.rb