Sha256: 317353658179b219591253163bbd71ae639ada7128a1500ff9e98fd163f36095
Contents?: true
Size: 498 Bytes
Versions: 15
Compression:
Stored size: 498 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Axiom::Types::Type, '.infer' do subject { object.infer(arg) } let(:object) { described_class } context 'when the argument is the type object' do let(:arg) { object } it { should be(object) } end Axiom::Types::Type.descendants.each do |descendant| context "when the argument is #{descendant}" do let(:arg) { descendant } it 'does not match any other type' do should be_nil end end end end
Version data entries
15 entries across 13 versions & 4 rubygems