Sha256: 76241cf51e2653a97374e5723f8389fc9087729c567470ef7bcb16eb2a88b2bc
Contents?: true
Size: 276 Bytes
Versions: 3
Compression:
Stored size: 276 Bytes
Contents
require 'spec_helper' describe Yema::Virtus::Attribute, '.build' do subject { described_class.build(value) } let(:value) { mock('not supported')} specify "raise type error" do expect{subject}.to raise_error(TypeError, "#{value.class} is not supported") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yema-0.0.3 | spec/unit/virtus/not_supported_type_spec.rb |
yema-0.0.2 | spec/unit/virtus/not_supported_type_spec.rb |
yema-0.0.1 | spec/unit/virtus/not_supported_type_spec.rb |