diff --git a/spec/unit/pops/parser/parse_functions_spec.rb b/spec/unit/pops/parser/parse_functions_spec.rb deleted file mode 100644 index 2a042866c..000000000 --- a/spec/unit/pops/parser/parse_functions_spec.rb +++ /dev/null @@ -1,32 +0,0 @@ -#! /usr/bin/env ruby -require 'spec_helper' -require 'puppet/pops' - -# relative to this spec file (./) does not work as this file is loaded by rspec -require File.join(File.dirname(__FILE__), '/parser_rspec_helper') - -describe "egrammar parsing function definitions" do - include ParserRspecHelper - - context "when defining a function" do - it "it can be dumped" do - pending 'puppet functions not yet supported' - dump(parse("function foo() { }")).should == "(function foo ())" - end - - it "typed parameters are dumped" do - pending 'puppet functions not yet supported' - dump(parse("function foo(String $a) { }")).should == "(function foo (parameters (t string a)) ())" - end - - it "last captures rest is dumped" do - pending 'puppet functions not yet supported' - dump(parse("function foo(String *$a) { }")).should == "(function foo (parameters (t string *a)) ())" - end - - it "the body is dumped" do - pending 'puppet functions not yet supported' - dump(parse("function foo() { 10 }")).should == "(function foo (block 10))" - end - end -end