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

Version Path
brcobranca-6.9.1 spec/brcobranca/rghost_spec.rb
brcobranca-6.9.0 spec/brcobranca/rghost_spec.rb
brcobranca-6.8.0 spec/brcobranca/rghost_spec.rb
brcobranca-6.7.0 spec/brcobranca/rghost_spec.rb
brcobranca-6.6.0 spec/brcobranca/rghost_spec.rb
brcobranca-6.5.0 spec/brcobranca/rghost_spec.rb
brcobranca-6.4.1 spec/brcobranca/rghost_spec.rb
brcobranca-6.4.0 spec/brcobranca/rghost_spec.rb
brcobranca-6.3.0 spec/brcobranca/rghost_spec.rb
brcobranca-6.2.2 spec/brcobranca/rghost_spec.rb
brcobranca-6.2.1 spec/brcobranca/rghost_spec.rb
brcobranca-6.2.0 spec/brcobranca/rghost_spec.rb
brcobranca-6.1.12 spec/brcobranca/rghost_spec.rb
brcobranca-6.1.11 spec/brcobranca/rghost_spec.rb
brcobranca-6.1.10 spec/brcobranca/rghost_spec.rb
brcobranca-6.1.9 spec/brcobranca/rghost_spec.rb
brcobranca-6.1.8 spec/brcobranca/rghost_spec.rb
brcobranca-6.1.7 spec/brcobranca/rghost_spec.rb
brcobranca-6.1.6 spec/brcobranca/rghost_spec.rb
brcobranca-6.1.5 spec/brcobranca/rghost_spec.rb