diff options
author | varac <varac@users.noreply.github.com> | 2015-11-25 15:47:00 +0100 |
---|---|---|
committer | varac <varac@users.noreply.github.com> | 2015-11-25 15:47:00 +0100 |
commit | 83a4d75bf8a480a98ac6fcdc220db59b9133112e (patch) | |
tree | efcca351ba23b292711a0c9a4b8cf1356f28680d /spec/classes/couchdb_spec.rb | |
parent | d4e0579ec88e999d42c9f4ffd32489396dce63c4 (diff) | |
parent | 2ac3b7c2e3283e5b0f48e6dd3d76c0192ee96a44 (diff) |
Merge pull request #4 from pixelated/fix_couchbase_version
ensure couchrest is not too new
Diffstat (limited to 'spec/classes/couchdb_spec.rb')
-rw-r--r-- | spec/classes/couchdb_spec.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/spec/classes/couchdb_spec.rb b/spec/classes/couchdb_spec.rb new file mode 100644 index 0000000..0dd069a --- /dev/null +++ b/spec/classes/couchdb_spec.rb @@ -0,0 +1,35 @@ +require 'spec_helper' + +describe 'couchdb' do + context 'given it is a wheezy system' do + let(:params) { {:admin_pw => 'foo'} } + let(:facts) do + { + :operatingsystemmajrelease => '7', + :operatingsystem => 'Debian', + :lsbdistcodename => 'wheezy', + } + end + it "should install couchrest 1.2" do + should contain_package('couchrest').with({ + 'ensure'=> '1.2', + }) + end + end + context 'given it is a jessie system' do + let(:params) { {:admin_pw => 'foo'} } + let(:facts) do + { + :operatingsystemmajrelease => '8', + :operatingsystem => 'Debian', + :lsbdistcodename => 'jessie', + } + end + it "should install latest couchrest version" do + should contain_package('couchrest').with({ + 'ensure'=> 'latest', + }) + end + end +end + |