Sha256: 94e8a837fa5b3f30cef0aec014955e960f6960c50e10880268dd33da693d3e76

Contents?: true

Size: 353 Bytes

Versions: 4

Compression:

Stored size: 353 Bytes

Contents

# encoding: utf-8

describe Transproc::FunctionNotFoundError do
  it 'complains that the function not registered' do
    Foo = Module.new { extend Transproc::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

4 entries across 4 versions & 1 rubygems

Version Path
transproc-1.0.3 spec/unit/function_not_found_error_spec.rb
transproc-1.0.2 spec/unit/function_not_found_error_spec.rb
transproc-1.0.1 spec/unit/function_not_found_error_spec.rb
transproc-1.0.0 spec/unit/function_not_found_error_spec.rb