Sha256: db4f86114270ae43603010c2c102bb28da73b454c64c81139d1e1872f0be44bd

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe 'Brcobranca' do
  it 'Validar opções padrão' do
    expect(Brcobranca.configuration.gerador).to eql(:rghost)
    expect(Brcobranca.configuration.formato).to eql(:pdf)
  end

  it 'Mudar configurações' do
    Brcobranca.setup do |config|
      config.gerador = :prawn
      config.formato = :gif
    end
    expect(Brcobranca.configuration.gerador).to eql(:prawn)
    expect(Brcobranca.configuration.formato).to eql(:gif)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
brcobranca-5.0.0 spec/brcobranca_spec.rb
brcobranca-4.1.0 spec/brcobranca_spec.rb
brcobranca-4.0.0 spec/brcobranca_spec.rb