Sha256: 16fc7aec3923eb006da7812724aee4bfc264eed565ca85b2641b709890f94e8f
Contents?: true
Size: 482 Bytes
Versions: 3
Compression:
Stored size: 482 Bytes
Contents
require 'spec_helper' module Qrb describe SubType, "name" do subject{ type.name } context 'when provided' do let(:type){ SubType.new(intType, {posint: ->(i){}}, "Foo") } it 'uses the specified one' do subject.should eq("Foo") end end context 'when not provided' do let(:type){ SubType.new(intType, posint: ->(i){}) } it 'uses the first constraint name' do subject.should eq("Posint") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.3.0 | spec/unit/type/sub_type/test_name.rb |
qrb-0.2.0 | spec/unit/type/sub_type/test_name.rb |
qrb-0.1.0 | spec/unit/type/sub_type/test_name.rb |