Sha256: 08de5b81bf8e4158002c8eb01c08ded56b22af62f397e6870bd61ec41175e43c
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.3.2 | spec/unit/function_not_found_error_spec.rb |
transproc-0.3.1 | spec/unit/function_not_found_error_spec.rb |
transproc-0.3.0 | spec/unit/function_not_found_error_spec.rb |