pdqtest 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dafe96e014a4ca7712b4cba22b55076263b61709
4
- data.tar.gz: 84fd8eabe79272904e55570b611fe8ff5b868211
3
+ metadata.gz: f8813a69ebe812db855f57a54817a370106f1783
4
+ data.tar.gz: 66449ccd6285d84da08e8092bd1077b58ba0f2a1
5
5
  SHA512:
6
- metadata.gz: 0cf37540360d35f24d79f3ef836f5aab169807e7998ec1b5d792560801c41daefb87ac777e082c518cffd938dc0febf4fe3216f6bef48fc0e08d6fd524bc9f9c
7
- data.tar.gz: 46dfad8f112c8b164839d9f27d520182158d400671b0a3d34d2f4dbcc5a9ad2625de7e6a1ad04c3e0cf68c44fde0839e5dce332566824e8a029486e75096e401
6
+ metadata.gz: 9c3749923fbf07d6a323a30040f13142509da16b7d5b703a5a865421d22a74f3adb75e34f74a5dee3ddeab9172875f35896751c4d26b1c23f864a200d18bfe5c
7
+ data.tar.gz: 5e02a0c32a1f12eeaf939ce6595cd6371ddbc850ec0699bce0dc92c17cb658dc4a4e81ad523c80cafe102a44f3fc184793d32e74e343bfec3c7bea5d278aacf4
data/lib/pdqtest/rspec.rb CHANGED
@@ -52,7 +52,7 @@ module PDQTest
52
52
  end
53
53
 
54
54
  # process the rspec template into a new file
55
- template = File.read(Util::resource_path(File.join('templates', 'rspec.rb')))
55
+ template = File.read(Util::resource_path(File.join('templates', 'rspec.rb.erb')))
56
56
  testcase = ERB.new(template, nil, '-').result(binding)
57
57
  File.write(spec_file, testcase)
58
58
  end
@@ -1,3 +1,3 @@
1
1
  module PDQTest
2
- VERSION = "0.1.17"
2
+ VERSION = "0.1.18"
3
3
  end
data/pdqtest.gemspec CHANGED
@@ -36,4 +36,5 @@ Gem::Specification.new do |spec|
36
36
  spec.add_runtime_dependency "puppetlabs_spec_helper", "1.2.2"
37
37
  spec.add_runtime_dependency "librarian-puppet", "2.2.3"
38
38
  spec.add_runtime_dependency "git_refresh", "0.1.0"
39
+ spec.add_runtime_dependency "puppet_factset", "0.2.1"
39
40
  end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+ require 'puppet_factset'
3
+ describe '<%= classname %>' do
4
+ # Uncomment only the factset you would like to use for these tests
5
+ <%
6
+ require 'puppet_factset'
7
+ default_factset = 'CentOS-7.0-64'
8
+ PuppetFactset.factsets.each { |factset|
9
+ -%>
10
+ <% if factset != default_factset -%># <% end -%>system_name = '<%= factset %>'
11
+ <% } -%>
12
+ let :facts do
13
+ PuppetFactset::factset_hash(system_name)
14
+ end
15
+
16
+ context 'compiles ok' do
17
+ it { should compile }
18
+ end
19
+
20
+ context 'with default values for all parameters' do
21
+ it { should contain_class('<%= classname %>') }
22
+ end
23
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdqtest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Williams
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-31 00:00:00.000000000 Z
11
+ date: 2017-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -192,6 +192,20 @@ dependencies:
192
192
  - - '='
193
193
  - !ruby/object:Gem::Version
194
194
  version: 0.1.0
195
+ - !ruby/object:Gem::Dependency
196
+ name: puppet_factset
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - '='
200
+ - !ruby/object:Gem::Version
201
+ version: 0.2.1
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - '='
207
+ - !ruby/object:Gem::Version
208
+ version: 0.2.1
195
209
  description: write one...
196
210
  email:
197
211
  - geoff.williams@puppetlabs.com
@@ -235,7 +249,7 @@ files:
235
249
  - res/skeleton/init__before.bats
236
250
  - res/skeleton/init__setup.sh
237
251
  - res/skeleton/spec_helper.rb
238
- - res/templates/rspec.rb
252
+ - res/templates/rspec.rb.erb
239
253
  homepage: https://github.com/GeoffWilliams/pdqtest
240
254
  licenses:
241
255
  - Apache-2.0
@@ -1,10 +0,0 @@
1
- require 'spec_helper'
2
- describe '<%= classname %>' do
3
- context 'compiles ok' do
4
- it { should compile }
5
- end
6
-
7
- context 'with default values for all parameters' do
8
- it { should contain_class('<%= classname %>') }
9
- end
10
- end