Sha256: 9b850b3709345e8d270c2fd9523a1190281e01ca866a73284432b7091d001957
Contents?: true
Size: 467 Bytes
Versions: 5
Compression:
Stored size: 467 Bytes
Contents
require 'fortnox/api/models/examples/model' shared_examples_for 'DocumentBase Model' do |row_class, row_attribute, valid_row_hash: {}| it_behaves_like 'a model', 1 context "when having a(n) #{ row_class }" do it 'returns the correct object' do row = row_class.new(valid_row_hash) document_base = described_class.new( customer_number: '123', row_attribute => [row] ) expect(document_base.send(row_attribute)).to eq([row]) end end end
Version data entries
5 entries across 5 versions & 1 rubygems