spec/unit/parser/functions/versioncmp_spec.rb in puppet-3.2.4 vs spec/unit/parser/functions/versioncmp_spec.rb in puppet-3.3.0.rc2

- old
+ new

@@ -14,14 +14,14 @@ it "should exist" do Puppet::Parser::Functions.function("versioncmp").should == "function_versioncmp" end - it "should raise a ArgumentError if there is less than 2 arguments" do + it "should raise an ArgumentError if there is less than 2 arguments" do lambda { @scope.function_versioncmp(["1.2"]) }.should raise_error(ArgumentError) end - it "should raise a ArgumentError if there is more than 2 arguments" do + it "should raise an ArgumentError if there is more than 2 arguments" do lambda { @scope.function_versioncmp(["1.2", "2.4.5", "3.5.6"]) }.should raise_error(ArgumentError) end it "should call Puppet::Util::Package.versioncmp (included in scope)" do Puppet::Util::Package.expects(:versioncmp).with("1.2", "1.3").returns(-1)