Sha256: f20a0d5b5eda2d8aa061d03dfe1fc3870e1f02899e815920e2158d377d6f28c9
Contents?: true
Size: 673 Bytes
Versions: 26
Compression:
Stored size: 673 Bytes
Contents
require File.dirname(__FILE__) + '/../../../../../spec_helper' include OpenEHR::AM::Archetype::Assertion describe ExprItem do before(:each) do @expr_item = ExprItem.new(:type => 'Real') end it 'should be an instance of ExprItem' do @expr_item.should be_an_instance_of ExprItem end it 'type should be assigned properly' do @expr_item.type.should == 'Real' end it 'should raise ArgumentError when type is nil' do lambda { @expr_item.type = nil }.should raise_error ArgumentError end it 'should raise ArgumentError when type is empty' do lambda { @expr_item.type = '' }.should raise_error ArgumentError end end
Version data entries
26 entries across 26 versions & 2 rubygems