15
15
it "should raise a ParseError if there is less than 2 arguments" do
16
16
lambda { @scope.function_versioncmp(["1.2"]) }.should raise_error(Puppet::ParseError)
19
19
it "should raise a ParseError if there is more than 2 arguments" do
20
20
lambda { @scope.function_versioncmp(["1.2", "2.4.5", "3.5.6"]) }.should raise_error(Puppet::ParseError)
23
23
it "should call Puppet::Util::Package.versioncmp (included in scope)" do
24
24
Puppet::Util::Package.expects(:versioncmp).with("1.2", "1.3").returns(-1)