Sha256: de6f28bbdd92447b55245fdeab9326e48d993b2fef23cf73c298f34282c59b93

Contents?: true

Size: 581 Bytes

Versions: 26

Compression:

Stored size: 581 Bytes

Contents

require File.dirname(__FILE__) + '/../../../../../spec_helper'
include OpenEHR::RM::Support::Identification

describe ObjectID do
  before(:each) do
    @object_id = ObjectID.new(:value => '1')
  end

  it 'should be an instance of ObjectID' do
    @object_id.should be_an_instance_of ObjectID
  end

  it 'value should be 1' do
    @object_id.value.should == '1'
  end

  it 'should equal with same value' do
    @object_id.should == ObjectID.new(:value => '1')
  end

  it 'should_not equal with other value' do
    @object_id.should_not == ObjectID.new(:value => 'a')
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
openehr-1.2.8 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.2.7 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.2.6 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.2.5 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.2.4 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.2.3 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.2.2 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.2.1 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.2.0 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.1.6 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.1.5 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.1.4 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.1.3 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.1.2 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.1.1 spec/lib/openehr/rm/support/identification/object_id_spec.rb
openehr-1.1.0 spec/lib/openehr/rm/support/identification/object_id_spec.rb
open_ehr-1.0.2 spec/lib/open_ehr/rm/support/identification/object_id_spec.rb
open_ehr-1.0.1 spec/lib/open_ehr/rm/support/identification/object_id_spec.rb
open_ehr-1.0.0 spec/lib/open_ehr/rm/support/identification/object_id_spec.rb
open_ehr-0.9.5 spec/lib/open_ehr/rm/support/identification/object_id_spec.rb