Skip to content

Commit

Permalink
Fixed tests for repos using osfamily
Browse files Browse the repository at this point in the history
Tests needed to be updated to use osfamily fact rather than operating
system.
  • Loading branch information
George Brown committed Apr 3, 2014
1 parent d9567ac commit 025a085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/classes/sensu_package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
context 'repos' do

context 'ubuntu' do
let(:facts) { { :operatingsystem => 'Ubuntu' } }
let(:facts) { { :osfamily => 'Debian' } }

context 'with puppet-apt installed' do
let(:pre_condition) { [ 'define apt::source ($ensure, $location, $release, $repos, $include_src) {}', 'define apt::key ($key, $key_source) {}' ] }
Expand Down Expand Up @@ -80,7 +80,7 @@
end

context 'redhat' do
let(:facts) { { :operatingsystem => 'RedHat' } }
let(:facts) { { :osfamily => 'RedHat' } }

context 'default' do
it { should contain_yumrepo('sensu').with(
Expand Down

0 comments on commit 025a085

Please sign in to comment.