Sha256: 12e3717f8ad8106338d86d21cc570dd1b4285702d8cb1df03e7f021d8078e4a1

Contents?: true

Size: 786 Bytes

Versions: 2

Compression:

Stored size: 786 Bytes

Contents

# -*- encoding: utf-8 -*-
#

require 'spec_helper'

RSpec.describe 'Bbrcobranca' do
  describe 'gerador' do
    context 'rghost' do
      before { Bbrcobranca.configuration.gerador = :rghost }

      it { expect(Bbrcobranca.configuration.gerador).to be(:rghost) }
    end

    context 'prawn' do
      before { Bbrcobranca.configuration.gerador = :prawn }

      it { expect(Bbrcobranca.configuration.gerador).to be(:prawn) }
    end
  end

  describe 'formato' do
    context 'pdf' do
      before { Bbrcobranca.configuration.formato = :pdf }

      it { expect(Bbrcobranca.configuration.formato).to be(:pdf) }
    end

    context 'gif' do
      before { Bbrcobranca.configuration.formato = :gif }

      it { expect(Bbrcobranca.configuration.formato).to be(:gif) }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bbrcobranca-0.0.2 spec/bbrcobranca_spec.rb
bbrcobranca-0.0.1 spec/bbrcobranca_spec.rb