rspec-puppet-augeas 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -60,6 +60,9 @@ fixtures directory.
60
60
  Read the spec file(s) at `spec/classes/*.rb` to see various real-life examples
61
61
  of the features below.
62
62
 
63
+ Also see [rspec-puppet-augeas-example](https://github.com/domcleal/rspec-puppet-augeas-example)
64
+ for a typical working project.
65
+
63
66
  ### describe\_augeas example group
64
67
 
65
68
  `describe_augeas` adds an example group, like describe/context, but that describes
@@ -40,6 +40,7 @@ module RSpec::Puppet::Augeas
40
40
  Puppet::Util::Log.newdestination(Puppet::Test::LogCollector.new(logs))
41
41
  Puppet::Util::Log.level = 'debug'
42
42
 
43
+ [:require, :before, :notify, :subscribe].each { |p| resource.delete p }
43
44
  catalog = Puppet::Resource::Catalog.new
44
45
  catalog.add_resource resource
45
46
  catalog = catalog.to_ral if resource.is_a? Puppet::Resource
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rspec-puppet-augeas'
3
- s.version = '0.2.2'
3
+ s.version = '0.2.3'
4
4
  s.homepage = 'https://github.com/domcleal/rspec-puppet-augeas/'
5
5
  s.summary = 'RSpec tests for Augeas resources in Puppet manifests'
6
6
  s.description = 'RSpec tests for Augeas resources in Puppet manifests'
@@ -1,7 +1,12 @@
1
1
  class sshd {
2
+ file { '/etc/ssh/sshd_config':
3
+ ensure => present,
4
+ }
5
+
2
6
  augeas { "root login":
3
7
  context => '/files/etc/ssh/sshd_config',
4
8
  changes => 'set PermitRootLogin yes',
9
+ require => File['/etc/ssh/sshd_config'],
5
10
  }
6
11
 
7
12
  augeas { "incl root login":
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-puppet-augeas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-03 00:00:00.000000000 Z
12
+ date: 2013-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec-puppet
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 1.8.24
92
+ rubygems_version: 1.8.25
93
93
  signing_key:
94
94
  specification_version: 3
95
95
  summary: RSpec tests for Augeas resources in Puppet manifests