Skip to content

Commit

Permalink
update rspec-puppet tests to use contain_class() instead of include_c…
Browse files Browse the repository at this point in the history
…lass()
  • Loading branch information
Joshua Hoblitt committed Jan 7, 2014
1 parent b2f4e53 commit e2512d7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions spec/unit/classes/globals_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

describe 'with no parameters' do
it 'should work' do
should include_class("postgresql::globals")
should contain_class("postgresql::globals")
end
end

Expand All @@ -22,7 +22,7 @@
}
end
it 'should pull in class postgresql::repo' do
should include_class("postgresql::repo")
should contain_class("postgresql::repo")
end
end
end
2 changes: 1 addition & 1 deletion spec/unit/classes/lib/devel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
:operatingsystemrelease => '6.0',
}
end
it { should include_class("postgresql::lib::devel") }
it { should contain_class("postgresql::lib::devel") }
end
2 changes: 1 addition & 1 deletion spec/unit/classes/params_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
:operatingsystemrelease => '6.0',
}
end
it { should include_class("postgresql::params") }
it { should contain_class("postgresql::params") }
end
2 changes: 1 addition & 1 deletion spec/unit/classes/repo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

describe 'with no parameters' do
it 'should instantiate apt_postgresql_org class' do
should include_class('postgresql::repo::apt_postgresql_org')
should contain_class('postgresql::repo::apt_postgresql_org')
end
end
end
4 changes: 2 additions & 2 deletions spec/unit/classes/server/plperl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
end

describe 'with no parameters' do
it { should include_class("postgresql::server::plperl") }
it { should contain_class("postgresql::server::plperl") }
it 'should create package' do
should contain_package('postgresql-plperl').with({
:ensure => 'present',
Expand All @@ -33,7 +33,7 @@
}
end

it { should include_class("postgresql::server::plperl") }
it { should contain_class("postgresql::server::plperl") }
it 'should create package with correct params' do
should contain_package('postgresql-plperl').with({
:ensure => 'absent',
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/classes/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
end

describe 'with no parameters' do
it { should include_class("postgresql::params") }
it { should include_class("postgresql::server") }
it { should contain_class("postgresql::params") }
it { should contain_class("postgresql::server") }
it 'should validate connection' do
should contain_postgresql__validate_db_connection('validate_service_is_running')
end
Expand Down

0 comments on commit e2512d7

Please sign in to comment.