spec/ast/function_spec.rb in dentaku-3.4.2 vs spec/ast/function_spec.rb in dentaku-3.5.0

- old
+ new

@@ -59,6 +59,11 @@ expect { described_class.numeric('') }.to raise_error Dentaku::ArgumentError expect { described_class.numeric(nil) }.to raise_error Dentaku::ArgumentError expect { described_class.numeric('7.') }.to raise_error Dentaku::ArgumentError expect { described_class.numeric(true) }.to raise_error Dentaku::ArgumentError end + + it "allows read access to arguments" do + fn = described_class.new(1, 2, 3) + expect(fn.args).to eq([1, 2, 3]) + end end