Sha256: 7e28024b95f37626f812d13d7ca9355da673cd1790b027268c3cee00d0f85f4d
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
RSpec.describe Dry::Transformer do let(:container) { Module.new { extend Dry::Transformer::Registry } } let(:klass) { Dry::Transformer[container] } let(:transformer) { klass.new } context 'when invalid method is used' do it 'raises an error on initialization' do klass.define! do not_valid end expect { klass.new }.to raise_error(Dry::Transformer::Compiler::InvalidFunctionNameError, /not_valid/) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-transformer-0.1.0 | spec/unit/transformer/dsl_spec.rb |