Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
add test for usersoptions hash
Browse files Browse the repository at this point in the history
Change-Id: If85ab8c355b7cf6e95d7acb2fb9e0b1e30e8a7c4
  • Loading branch information
br0ch0n committed Dec 20, 2016
1 parent b0be3fb commit 8e622f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/classes/uchiwa_spec.rb
Expand Up @@ -178,4 +178,13 @@
}
end

context 'with usersoptions' do
let(:params) {{ :usersoptions => { 'disableNoExpiration' => true, 'defaultTheme' => 'uchiwa-default' } }}
it {
should contain_file('/etc/sensu/uchiwa.json') \
.with_content(/"disableNoExpiration": true/) \
.with_content(/"defaultTheme": "uchiwa-default"/)
}
end

end

0 comments on commit 8e622f6

Please sign in to comment.