X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fstdlib%2Fspec%2Funit%2Fpuppet%2Fparser%2Ffunctions%2Fswapcase_spec.rb;fp=modules%2Fstdlib%2Fspec%2Funit%2Fpuppet%2Fparser%2Ffunctions%2Fswapcase_spec.rb;h=0000000000000000000000000000000000000000;hb=ad88f67c13ae0f1a08936dad643f1e3509ab5f40;hp=26860546cf917202667afa9c07dc2bf0c5805855;hpb=23d29143ac40015ce61cf83a4067466f8f7d66dc;p=mirror%2Fdsa-puppet.git diff --git a/modules/stdlib/spec/unit/puppet/parser/functions/swapcase_spec.rb b/modules/stdlib/spec/unit/puppet/parser/functions/swapcase_spec.rb deleted file mode 100644 index 26860546c..000000000 --- a/modules/stdlib/spec/unit/puppet/parser/functions/swapcase_spec.rb +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env rspec -require 'spec_helper' - -describe "the swapcase 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("swapcase").should == "function_swapcase" - end - - it "should raise a ParseError if there is less than 1 arguments" do - lambda { @scope.function_swapcase([]) }.should( raise_error(Puppet::ParseError)) - end - - it "should swapcase a string" do - result = @scope.function_swapcase(["aaBBccDD"]) - result.should(eq('AAbbCCdd')) - end - -end