diff options
author | varac <varac@users.noreply.github.com> | 2015-11-30 13:26:58 +0100 |
---|---|---|
committer | varac <varac@users.noreply.github.com> | 2015-11-30 13:26:58 +0100 |
commit | a8e5e5ba7844e41c1d50827f677bad132c69d09b (patch) | |
tree | 66d15b32c5362135a5c071906defb405e871fc66 | |
parent | 016ec71359f6b1b368624c6c94bac2b509791658 (diff) | |
parent | d51e381ffc489cc9c984727658475da93d1869dd (diff) |
Merge pull request #6 from pixelated/test_versioncmp
make extra sure versioncmp behaves as expected
-rw-r--r-- | spec/functions/versioncmp_spec.rb | 9 |
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 + |