From af6fdd31fb961fc1b7f408f51001e7a6d192a58a Mon Sep 17 00:00:00 2001 From: Micah Date: Tue, 24 May 2016 10:19:27 -0400 Subject: Squashed 'puppet/modules/couchdb/' content from commit 76ff149 git-subtree-dir: puppet/modules/couchdb git-subtree-split: 76ff149a095023611c05bbb00157d06f87b07c05 --- spec/functions/versioncmp_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/functions/versioncmp_spec.rb (limited to 'spec/functions') diff --git a/spec/functions/versioncmp_spec.rb b/spec/functions/versioncmp_spec.rb new file mode 100644 index 00000000..0a244275 --- /dev/null +++ b/spec/functions/versioncmp_spec.rb @@ -0,0 +1,9 @@ +require 'spec_helper' + +describe 'versioncmp' do + it { should run.with_params('7.2','8').and_return(-1) } + it { should run.with_params('7','8').and_return(-1) } + it { should run.with_params('8','8').and_return(0) } + it { should run.with_params('8.1','8').and_return(1) } +end + -- cgit v1.2.3