Sha256: 4373e6c9c8e0ddb0afa752de27c283bf53537049b2893af9ffcf9ab5d85e3cdc
Contents?: true
Size: 600 Bytes
Versions: 19
Compression:
Stored size: 600 Bytes
Contents
require 'spec_helper' module Finitio describe SubType, "include?" do let(:type){ SubType.new(intType, [byte_min, byte_max], "byte") } subject{ type.include?(arg) } context 'when included on int' do let(:arg){ 12 } it{ should eq(true) } end context 'when not included on int (I)' do let(:arg){ -12 } it{ should eq(false) } end context 'when not included on int (II)' do let(:arg){ 256 } it{ should eq(false) } end context 'when not included' do let(:arg){ "12" } it{ should eq(false) } end end end
Version data entries
19 entries across 19 versions & 1 rubygems