summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/functions/versioncmp_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/functions/versioncmp_spec.rb b/spec/functions/versioncmp_spec.rb
new file mode 100644
index 0000000..0a24427
--- /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
+