Sha256: f50c78be1d865e6a7847b8cfaab769e8d33a720828af89d02842fc79aac6246a
Contents?: true
Size: 402 Bytes
Versions: 2
Compression:
Stored size: 402 Bytes
Contents
require 'spec_helper' describe Unparser::Emitter, '.handle' do subject { class_under_test.class_eval { handle :foo } } let(:class_under_test) do Class.new(described_class) end before do stub_const('Unparser::Emitter::REGISTRY', {}) end it 'should register emitter' do expect { subject }.to change { Unparser::Emitter::REGISTRY }.from({}).to(foo: class_under_test) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unparser-0.1.5 | spec/unit/unparser/emitter/class_methods/handle_spec.rb |
unparser-0.1.4 | spec/unit/unparser/emitter/class_methods/handle_spec.rb |