Sha256: 06468ca24dad2cd59481239da7e1e1e0a8ccdb3da2ea1a74b377e37ce3f10e72
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
require 'fortnox/api/models/examples/model' shared_examples_for 'DocumentBase Model' do |row_class, row_attribute, valid_hash, valid_row_hash: {}| it_behaves_like 'a model', valid_hash, :document_number, 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fortnox-api-0.2.0 | spec/fortnox/api/models/examples/document_base.rb |