Sha256: 6f117f1b7599f5f2da88102bc476c3aaa201c2335a37a252a386dec029983f3f
Contents?: true
Size: 549 Bytes
Versions: 3
Compression:
Stored size: 549 Bytes
Contents
require 'spec_helper' module Qrb describe SetType, 'initialize' do subject{ SetType.new(intType) } context 'with valid arguments' do it{ should be_a(SetType) } it 'should set the instance variables' do subject.elm_type.should eq(intType) end end context 'with invalid arguments' do subject{ SetType.new("foo") } it 'should raise an error' do ->{ subject }.should raise_error(ArgumentError, 'Qrb::Type expected, got `foo`') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.3.0 | spec/unit/type/set_type/test_initialize.rb |
qrb-0.2.0 | spec/unit/type/set_type/test_initialize.rb |
qrb-0.1.0 | spec/unit/type/set_type/test_initialize.rb |