Sha256: a5f3190c3e62dc67d8d5f37c0c2ad8c2c040a23de4eb8d5f8ce1077e1a2507a6
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
# encoding: utf-8 shared_examples 'AbstractType.create_new_method' do context 'called on a subclass' do let(:object) { Class.new(abstract_type) } it { should be_instance_of(object) } end context 'called on the class' do let(:object) { abstract_type } specify do expect { subject }.to raise_error( NotImplementedError, "#{object} is an abstract type" ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
abstract_type-0.0.7 | spec/shared/create_new_method_shared_spec.rb |