Sha256: 7b543ea844fe8d19822dcfdd3c0bfb3774b2409a566e97cc2f2ac51024905666
Contents?: true
Size: 646 Bytes
Versions: 3
Compression:
Stored size: 646 Bytes
Contents
# encoding: utf-8 describe Transproc::FunctionNotFoundError do it 'complains that the function not registered globally' do expect { Transproc(:foo) }.to raise_error do |error| expect(error).to be_kind_of described_class expect(error.message['foo']).not_to be_nil expect(error.message['global']).not_to be_nil end end it 'complains that the function not registered locally' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
transproc-0.4.2 | spec/unit/function_not_found_error_spec.rb |
transproc-0.4.1 | spec/unit/function_not_found_error_spec.rb |
transproc-0.4.0 | spec/unit/function_not_found_error_spec.rb |