Sha256: aa713c6c177c17a7f253aacc935143d1ef2a543ab749f76209a50765b95713f3

Contents?: true

Size: 609 Bytes

Versions: 16

Compression:

Stored size: 609 Bytes

Contents

# ticket 191
require File.dirname(__FILE__) + '/../../../../../../spec_helper'
require 'openehr/am/openehr_profile/data_types/basic'
include ::OpenEHR::AM::OpenEHRProfile::DataTypes::Basic

describe State do
  before(:all) do
    @state = State.new(:name => 'PROPOSED')
  end

  it 'is an instance of State' do
    @state.should be_an_instance_of State
  end

  it 'name is PROPOSED' do
    @state.name.should == 'PROPOSED'
  end

  it 'raise error name is empty' do
    expect {@state.name = ''}.to raise_error
  end

  it 'raise error name is nil' do
    expect {@state.name = nil}.to raise_error
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
openehr-1.2.8 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.2.7 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.2.6 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.2.5 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.2.4 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.2.3 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.2.2 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.2.1 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.2.0 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.1.6 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.1.5 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.1.4 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.1.3 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.1.2 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.1.1 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb
openehr-1.1.0 spec/lib/openehr/am/openehr_profile/data_types/basic/state_spec.rb