Sha256: 1ac95c8c27e1fd59fd0a6e8daaf4e664f03e601417866a1459d9841a29bc3438

Contents?: true

Size: 736 Bytes

Versions: 15

Compression:

Stored size: 736 Bytes

Contents

require 'spec_helper'

module Roqua
  module CoreApi
    module Models
      describe Dossier do
        let(:valid_dossier) { Dossier.new }

        describe '#new' do
          subject { Dossier.new external_identifier: 'ext_id' }
          it 'accepts a hash of attributes' do
            expect(subject.external_identifier).to eq 'ext_id'
          end
        end

        describe '#assign_attributes' do
          subject { Dossier.new external_identifier: 'ext_id' }
          it 'allows assigning of attributes' do
            subject.assign_attributes(external_identifier: 'external_identifier')
            expect(subject.external_identifier).to eq 'external_identifier'
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
roqua-core-api-0.7.0 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.6.0 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.5.0 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.4.0 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.3.1 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.3.0 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.2.4 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.2.3 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.2.2 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.2.1 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.2.0 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.1.1 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.1.0 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.0.39 spec/lib/roqua/core_api/models/dossier_spec.rb
roqua-core-api-0.0.38 spec/lib/roqua/core_api/models/dossier_spec.rb