spec/external_function_spec.rb in dentaku-2.0.0 vs spec/external_function_spec.rb in dentaku-2.0.1

- old
+ new

@@ -6,15 +6,15 @@ describe 'external functions' do let(:with_external_funcs) do c = described_class.new - c.add_function(:now, -> { Time.now.to_s }) + c.add_function(:now, :string, -> { Time.now.to_s }) fns = [ - [:pow, ->(mantissa, exponent) { mantissa ** exponent }], - [:biggest, ->(*args) { args.max }], - [:smallest, ->(*args) { args.min }], + [:pow, :numeric, ->(mantissa, exponent) { mantissa ** exponent }], + [:biggest, :numeric, ->(*args) { args.max }], + [:smallest, :numeric, ->(*args) { args.min }], ] c.add_functions(fns) end