spec/ast/function_spec.rb in dentaku-3.3.2 vs spec/ast/function_spec.rb in dentaku-3.3.3

- old
+ new

@@ -20,10 +20,10 @@ it 'does not throw an error when registering a function with a name that matches a currently defined constant' do expect { described_class.register("clazz", :string, -> { "clazzified" }) }.not_to raise_error end describe "#arity" do - it "gives the correct arity for custom functions" do + it "returns the correct arity for custom functions" do zero = described_class.register("zero", :numeric, ->() { 0 }) expect(zero.arity).to eq(0) one = described_class.register("one", :numeric, ->(x) { x * 2 }) expect(one.arity).to eq(1)