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