Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 986b9d8

Browse files
committed
Use contain_class matcher over include_class
1 parent a08fe4a commit 986b9d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/classes/postgresql__config_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
let(:facts) { default_test_facts }
55

66
it do
7-
should include_class('boxen::config')
7+
should contain_class('boxen::config')
88

99
%w(data/postgresql-9.5 log/postgresql-9.5).each do |d|
1010
should contain_file("/test/boxen/#{d}").with_ensure(:directory)
@@ -13,7 +13,7 @@
1313
contain_sysctl__set("kern.sysv.shmmax")
1414
contain_sysctl__set("kern.sysv.shmall")
1515

16-
should include_class("boxen::config")
16+
should contain_class("boxen::config")
1717
should contain_boxen__env_script("postgresql")
1818
should contain_file("/Library/LaunchDaemons/dev.postgresql.plist")
1919
end
@@ -22,7 +22,7 @@
2222
let(:facts) { default_test_facts.merge(:operatingsystem => "Ubuntu") }
2323

2424
it do
25-
should_not include_class("boxen::config")
25+
should_not contain_class("boxen::config")
2626

2727
should_not contain_boxen__env_script("postgresql")
2828
should_not contain_file("/Library/LaunchDaemons/dev.postgresql.plist")

spec/defines/postgresql_db_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
let(:title) { 'testdb' }
66

77
it do
8-
should include_class("postgresql")
8+
should contain_class("postgresql")
99

1010
should contain_exec("postgresql-db-#{title}").with({
1111
:command => "/test/boxen/homebrew/bin/createdb -p15432 -E UTF-8 -O testuser #{title}",

0 commit comments

Comments
 (0)