Sha256: 4c4eb7424e908f0e5d15daccd2774f349160221051b9924a78ecae7d8e79d794
Contents?: true
Size: 410 Bytes
Versions: 17
Compression:
Stored size: 410 Bytes
Contents
require 'spec_helper' describe Attributor::Type do subject(:type) do Class.new { include Attributor::Type } end it 'raises an error for unimplemented example' do expect { type.example }.to raise_error(Attributor::AttributorException) end it 'raises an error for unimplemented valid_type?' do expect { type.valid_type?('foo') }.to raise_error(Attributor::AttributorException) end end
Version data entries
17 entries across 17 versions & 1 rubygems