Sha256: 5fedfc2fd84d9c1776a1e3f69cd70528df137812555bc10bc136a70fd4e91d07

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Dry::Transformer::FunctionNotFoundError do
  it 'complains that the function not registered' do
    Foo = Module.new { extend Dry::Transformer::Registry }

    expect { Foo[:foo] }.to raise_error do |error|
      expect(error).to be_kind_of described_class
      expect(error.message['function Foo[:foo]']).not_to be_nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dry-transformer-0.1.0 spec/unit/function_not_found_error_spec.rb