rspec-puppet 2.7.0 → 2.7.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +7 -7
- data/lib/rspec-puppet/monkey_patches.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bfde7204a46cbdfc8a4fa1ac03ae8e9d5320372
|
4
|
+
data.tar.gz: fe3d036fa4a3452167b4d422729f1bda754e4309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 410832cb75f7f019c0cd7ea9a53d4650101a1c5890aad0a766adb3dcdd1e1fb0f2fdda7c32a272ab0cdeadd016f5659cb33d5c24cec3424d3b68c3107c4369fd
|
7
|
+
data.tar.gz: 3ec95e750f92e06d09deb612bfea796dcd42db71ae584a76881d6bb97edda3e6b3afb2a69d3ab2545afbe2f42a6e2aef5b7fd1a661cf34f4958ce862e6deea7b
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
All notable changes to this project will be documented in this file. This
|
3
3
|
project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## [2.7.1]
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
* Fixed a bug that prevented the platform pretending/stubbing logic from being
|
9
|
+
temporarily disabled when loading Ruby code.
|
10
|
+
|
5
11
|
## [2.7.0]
|
6
12
|
|
7
13
|
### Changed
|
data/README.md
CHANGED
@@ -829,7 +829,7 @@ Puppet functions.
|
|
829
829
|
|
830
830
|
```ruby
|
831
831
|
it 'should be able to do something' do
|
832
|
-
subject.
|
832
|
+
subject.execute('foo') == 'bar'
|
833
833
|
end
|
834
834
|
```
|
835
835
|
|
@@ -869,11 +869,11 @@ either the `with_params` chain method in the `run` matcher
|
|
869
869
|
it { is_expected.to run.with_params('foo', 'bar', ['baz']) }
|
870
870
|
```
|
871
871
|
|
872
|
-
Or by using the `
|
872
|
+
Or by using the `execute` method on the subject directly
|
873
873
|
|
874
874
|
```ruby
|
875
875
|
it 'something' do
|
876
|
-
subject.
|
876
|
+
subject.exectue('foo', 'bar', ['baz'])
|
877
877
|
end
|
878
878
|
```
|
879
879
|
|
@@ -900,8 +900,8 @@ Or by using any of the existing RSpec matchers on the subject directly
|
|
900
900
|
|
901
901
|
```ruby
|
902
902
|
it 'something' do
|
903
|
-
subject.
|
904
|
-
subject.
|
903
|
+
subject.execute('foo') == 'bar'
|
904
|
+
subject.execute('baz').should be_an Array
|
905
905
|
end
|
906
906
|
```
|
907
907
|
|
@@ -919,8 +919,8 @@ Or by using the existing `raises_error` RSpec matcher
|
|
919
919
|
|
920
920
|
```ruby
|
921
921
|
it 'something' do
|
922
|
-
expect { subject.
|
923
|
-
expect { subject.
|
922
|
+
expect { subject.execute('a', 'b') }.should raise_error(Puppet::ParseError)
|
923
|
+
expect { subject.execute('a') }.should_not raise_error(Puppet::ParseError)
|
924
924
|
end
|
925
925
|
```
|
926
926
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Sharpe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|