Sha256: f004e6560fa9e0bcbbb85a63487cce63434ced9faf2c87633f1456da8379cb6f

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# -*- encoding: utf-8 -*-
require File.dirname(__FILE__) + '/../spec_helper.rb'
require 'rghost'

describe "RGhost" do

  before(:each) do
    @valid_attributes = {
      :especie_documento => "DM",
      :moeda => "9",
      :data_documento => Date.today,
      :dias_vencimento => 1,
      :aceite => "S",
      :quantidade => 1,
      :valor => 0.0,
      :local_pagamento => "QUALQUER BANCO ATÉ O VENCIMENTO",
      :cedente => "Kivanio Barbosa",
      :documento_cedente => "12345678912",
      :sacado => "Claudio Pozzebom",
      :sacado_documento => "12345678900",
      :agencia => "4042",
      :conta_corrente => "61900",
      :convenio => 12387989,
      :numero_documento => "777700168"
    }
  end

  it "Testar se RGhost está instalado" do
    RGhost::Config.config_platform
    File.exist?(RGhost::Config::GS[:path]).should be_true
    File.executable?(RGhost::Config::GS[:path]).should be_true
    s=`#{RGhost::Config::GS[:path]} -v`
    s.should =~ /^GPL Ghostscript/
    s=`#{RGhost::Config::GS[:path]} --version`
    s.should =~ /[8-9]\.[0-9]/
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tulios-brcobranca-3.0.0 spec/brcobranca/rghost_spec.rb