Sha256: b4d34322fdbb7e3d8aed1be1a95476890bc717ec233b4f8796507699c35ca7da

Contents?: true

Size: 1.65 KB

Versions: 2

Compression:

Stored size: 1.65 KB

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

module Brcobranca
  module Boleto
    module Template
      describe Util do
        it "should get correct file" do
          boleto_novo = BancoBanespa.new
          File.exist?(boleto_novo.monta_logo).should be_true
          File.stat(boleto_novo.monta_logo).zero?.should be_false

          boleto_novo = BancoBradesco.new
          File.exist?(boleto_novo.monta_logo).should be_true
          File.stat(boleto_novo.monta_logo).zero?.should be_false

          boleto_novo = BancoBrasil.new
          File.exist?(boleto_novo.monta_logo).should be_true
          File.stat(boleto_novo.monta_logo).zero?.should be_false

          boleto_novo = BancoHsbc.new
          File.exist?(boleto_novo.monta_logo).should be_true
          File.stat(boleto_novo.monta_logo).zero?.should be_false

          boleto_novo = BancoItau.new
          File.exist?(boleto_novo.monta_logo).should be_true
          File.stat(boleto_novo.monta_logo).zero?.should be_false

          boleto_novo = BancoReal.new
          File.exist?(boleto_novo.monta_logo).should be_true
          File.stat(boleto_novo.monta_logo).zero?.should be_false

          boleto_novo = BancoUnibanco.new
          File.exist?(boleto_novo.monta_logo).should be_true
          File.stat(boleto_novo.monta_logo).zero?.should be_false
          
          boleto_novo = BancoCaixa.new
          File.exist?(boleto_novo.monta_logo).should be_true
          File.stat(boleto_novo.monta_logo).zero?.should be_false
          
          boleto_novo = Brcobranca::Boleto::Base.new
          boleto_novo.monta_logo.should be_false
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tulios-brcobranca-rails2-2.0.10 spec/brcobranca/template/util_spec.rb
tulios-brcobranca-rails2-2.0.9 spec/brcobranca/template/util_spec.rb