Sha256: b11ace3ad9c5bd0800ea70c3e096dd911878ee28969bdc81cb2e365401ed4f3a
Contents?: true
Size: 683 Bytes
Versions: 3
Compression:
Stored size: 683 Bytes
Contents
require 'spec_helper' module Qrb describe SeqType, "include?" do let(:type){ SeqType.new(intType) } subject{ type.include?(arg) } context 'when included on empty array' do let(:arg){ [] } it{ should be_true } end context 'when included on non empty array' do let(:arg){ [] } before do arg << 12 end it{ should be_true } end context 'when not an array' do let(:arg){ Set.new } it{ should be_false } end context 'when an array with non ints' do let(:arg){ [] } before do arg << 12 arg << "foo" end it{ should be_false } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.3.0 | spec/unit/type/seq_type/test_include.rb |
qrb-0.2.0 | spec/unit/type/seq_type/test_include.rb |
qrb-0.1.0 | spec/unit/type/seq_type/test_include.rb |