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

Commit

Permalink
Merge pull request #44 from orien/build
Browse files Browse the repository at this point in the history
Get test suite passing
  • Loading branch information
jacobbednarz authored May 31, 2017
2 parents 7661588 + 986b9d8 commit 2489016
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 62 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
script: "./script/cibuild"
gemfile: "this/does/not/exist"
rvm:
- "1.8.7"
- "1.9.3"
- "2.0.0"
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source "https://rubygems.org"

gem "cardboard", "~> 1.0"
gem "cardboard"
116 changes: 61 additions & 55 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,75 +1,81 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.3.5)
ansi (1.4.3)
boxen (1.5.2)
addressable (2.3.8)
ansi (1.5.0)
boxen (2.9.0)
ansi (~> 1.4)
hiera (~> 1.0)
highline (~> 1.6)
highline (~> 1.6.0)
json_pure (>= 1.7.7, < 2.0)
librarian-puppet (~> 0.9.9)
octokit (~> 1.15)
puppet (~> 3.0)
cardboard (1.0.4)
boxen (~> 1.0)
librarian-puppet (~> 1.0.0)
octokit (~> 2.7, >= 2.7.1)
puppet (~> 3.7)
cardboard (2.1.0)
boxen (~> 2.1)
puppet-lint (~> 0.3)
puppetlabs_spec_helper (~> 0.4)
rspec-puppet (~> 0.1)
diff-lcs (1.2.5)
facter (1.7.3)
faraday (0.8.8)
multipart-post (~> 1.2.0)
faraday_middleware (0.9.0)
faraday (>= 0.7.4, < 0.9)
hashie (2.0.5)
hiera (1.2.1)
rspec-puppet (~> 1.0)
diff-lcs (1.3)
facter (2.4.6)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
hiera (1.3.4)
json_pure
highline (1.6.20)
json (1.8.1)
json_pure (1.8.1)
librarian-puppet (0.9.10)
json
highline (1.6.21)
json (2.1.0)
json_pure (1.8.6)
librarian (0.1.2)
highline
thor (~> 0.15)
metaclass (0.0.1)
mocha (0.14.0)
librarian-puppet (1.0.9)
json
librarian (>= 0.1.2)
metaclass (0.0.4)
mocha (1.2.1)
metaclass (~> 0.0.1)
multi_json (1.8.2)
multipart-post (1.2.0)
netrc (0.7.7)
octokit (1.25.0)
addressable (~> 2.2)
faraday (~> 0.8)
faraday_middleware (~> 0.9)
hashie (~> 2.0)
multi_json (~> 1.3)
netrc (~> 0.7.7)
puppet (3.3.2)
facter (~> 1.6)
multipart-post (2.0.0)
octokit (2.7.2)
sawyer (~> 0.5.2)
puppet (3.8.7)
facter (> 1.6, < 3)
hiera (~> 1.0)
rgen (~> 0.6.5)
json_pure
puppet-lint (0.3.2)
puppetlabs_spec_helper (0.4.1)
mocha (>= 0.10.5)
puppet-syntax (2.4.0)
rake
rspec (>= 2.9.0)
rspec-puppet (>= 0.1.1)
rake (10.1.0)
rgen (0.6.6)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.7)
rspec-expectations (2.14.4)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.4)
rspec-puppet (0.1.6)
puppetlabs_spec_helper (0.10.3)
mocha
puppet-lint
puppet-syntax
rake
rspec-puppet
rake (12.0.0)
rspec (3.6.0)
rspec-core (~> 3.6.0)
rspec-expectations (~> 3.6.0)
rspec-mocks (~> 3.6.0)
rspec-core (3.6.0)
rspec-support (~> 3.6.0)
rspec-expectations (3.6.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.6.0)
rspec-mocks (3.6.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.6.0)
rspec-puppet (1.0.1)
rspec
thor (0.18.1)
rspec-support (3.6.0)
sawyer (0.5.5)
addressable (~> 2.3.5)
faraday (~> 0.8, < 0.10)
thor (0.19.4)

PLATFORMS
ruby

DEPENDENCIES
cardboard (~> 1.0)
cardboard

BUNDLED WITH
1.15.0
6 changes: 3 additions & 3 deletions spec/classes/postgresql__config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
let(:facts) { default_test_facts }

it do
should include_class('boxen::config')
should contain_class('boxen::config')

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

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

it do
should_not include_class("boxen::config")
should_not contain_class("boxen::config")

should_not contain_boxen__env_script("postgresql")
should_not contain_file("/Library/LaunchDaemons/dev.postgresql.plist")
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/postgresql_db_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let(:title) { 'testdb' }

it do
should include_class("postgresql")
should contain_class("postgresql")

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

0 comments on commit 2489016

Please sign in to comment.