Sha256: 3b57fff9706ff11cce5cb26448f8256429b5ff94f9ae49876c8f7f62a36085cd

Contents?: true

Size: 566 Bytes

Versions: 6

Compression:

Stored size: 566 Bytes

Contents

require 'rails_helper'

RSpec.describe BoaVistaStubs::Document::Response::Cpf do
  subject(:instance) { described_class.new }

  describe '#valid_document' do
    it 'returns the content of a valid layout' do
      expect(instance).to receive(:read_layout).with(described_class::LAYOUTS[:valid])
      instance.valid_document
    end
  end

  describe '#invalid_document' do
    it 'returns the content of a invalid layout' do
      expect(instance).to receive(:read_layout).with(described_class::LAYOUTS[:invalid])
      instance.invalid_document
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
boa_vista_stubs-0.0.8 spec/models/boa_vista_stubs/document/response/cpf_spec.rb
boa_vista_stubs-0.0.7 spec/models/boa_vista_stubs/document/response/cpf_spec.rb
boa_vista_stubs-0.0.6 spec/models/boa_vista_stubs/document/response/cpf_spec.rb
boa_vista_stubs-0.0.5 spec/models/boa_vista_stubs/document/response/cpf_spec.rb
boa_vista_stubs-0.0.4 spec/models/boa_vista_stubs/document/response/cpf_spec.rb
boa_vista_stubs-0.0.3 spec/models/boa_vista_stubs/document/response/cpf_spec.rb