spec/ast/function_spec.rb in dentaku-2.0.0 vs spec/ast/function_spec.rb in dentaku-2.0.1

- old
+ new

@@ -9,10 +9,10 @@ it 'raises an exception when trying to access an undefined function' do expect { described_class.get("flarble") }.to raise_error end it 'registers a custom function' do - described_class.register("flarble", -> { "flarble" }) + described_class.register("flarble", :string, -> { "flarble" }) expect { described_class.get("flarble") }.not_to raise_error function = described_class.get("flarble").new expect(function.value).to eq "flarble" end end