summaryrefslogtreecommitdiff
path: root/spec/unit/parser
diff options
context:
space:
mode:
authorKen Barber <ken@bob.sh>2011-07-28 21:30:02 +0100
committerKen Barber <ken@bob.sh>2011-07-28 21:30:02 +0100
commit7d6ae5d57ce45ff1293f02b90c816a7f938a3af6 (patch)
tree864177f1ce94abe0a8874f5b107cd6dce6b3e005 /spec/unit/parser
parent4915eff575801e73ab15a77b500eb2e0d42b579c (diff)
downloadpuppet-stdlib-7d6ae5d57ce45ff1293f02b90c816a7f938a3af6.tar.gz
puppet-stdlib-7d6ae5d57ce45ff1293f02b90c816a7f938a3af6.tar.bz2
Count functionality overlaps with size - so removing it.
Diffstat (limited to 'spec/unit/parser')
-rwxr-xr-xspec/unit/parser/functions/count_spec.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/unit/parser/functions/count_spec.rb b/spec/unit/parser/functions/count_spec.rb
deleted file mode 100755
index 62d005a..0000000
--- a/spec/unit/parser/functions/count_spec.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env rspec
-require 'spec_helper'
-
-describe "the count function" do
- before :all do
- Puppet::Parser::Functions.autoloader.loadall
- end
-
- before :each do
- @scope = Puppet::Parser::Scope.new
- end
-
- it "should exist" do
- Puppet::Parser::Functions.function("count").should == "function_count"
- end
-
- it "should raise a ParseError if there is less than 1 arguments" do
- lambda { @scope.function_count([]) }.should( raise_error(Puppet::ParseError))
- end
-
- it "should return the size of an array" do
- result = @scope.function_count([['a','c','b']])
- result.should(eq(3))
- end
-
-end