Sha256: cb7e7cc732acb462cacfe5a1f30b3362539d6115ba7cd5193467239c62943b45
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
require 'spec_helper' describe 'Veritas::Attribute.new' do subject { klass.new(:id) } context 'when called on the Attribute class' do let(:klass) { Attribute } specify { expect { subject }.to raise_error(NotImplementedError, 'Veritas::Attribute is an abstract class') } end [ Attribute::Boolean, Attribute::Class, Attribute::Date, Attribute::DateTime, Attribute::Decimal, Attribute::Float, Attribute::Integer, Attribute::Numeric, Attribute::Object, Attribute::String, Attribute::Time, ].each do |klass| context "when called on the Attribute subclass #{klass}" do let(:klass) { klass } it { should be_kind_of(Attribute) } it { should be_kind_of(klass) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.1 | spec/unit/veritas/attribute/class_methods/new_spec.rb |