Sha256: c18250231d8d07fc45b039afee4c1dfa9f563281a52085c2d024c24c123f0774
Contents?: true
Size: 1005 Bytes
Versions: 5
Compression:
Stored size: 1005 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper.rb' require 'tempfile' describe "RGhost test" do before(:each) do @valid_attributes = { :especie_documento => "DM", :moeda => "9", :banco => "001", :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 "should test gs presence" 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 8\.[6-9]/ end end
Version data entries
5 entries across 5 versions & 3 rubygems