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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe98cc153715d0f4a7ea74302e22db11b27f256b
4
- data.tar.gz: 0ff2d613a201b5b50779674bc126904555203c66
3
+ metadata.gz: 8bfde7204a46cbdfc8a4fa1ac03ae8e9d5320372
4
+ data.tar.gz: fe3d036fa4a3452167b4d422729f1bda754e4309
5
5
  SHA512:
6
- metadata.gz: 24db31229795fcfd326243a0b2fc20a17c78b6ee772f28092f9afd917534a3dd307d688c3934ef590c857027944c6fc9432baea652c7c4ecfbd40e563eb89dd1
7
- data.tar.gz: 50fa9b5882460e10e4148c4b78372b3f366178738fe5fa92dfee522e8b4811a5378156623e0f6d13e030c912f9a5560d6f4051e0cd7aa7a249c59600a55fe20f
6
+ metadata.gz: 410832cb75f7f019c0cd7ea9a53d4650101a1c5890aad0a766adb3dcdd1e1fb0f2fdda7c32a272ab0cdeadd016f5659cb33d5c24cec3424d3b68c3107c4369fd
7
+ data.tar.gz: 3ec95e750f92e06d09deb612bfea796dcd42db71ae584a76881d6bb97edda3e6b3afb2a69d3ab2545afbe2f42a6e2aef5b7fd1a661cf34f4958ce862e6deea7b
@@ -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.call(['foo']) == 'bar'
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 `call` method on the subject directly
872
+ Or by using the `execute` method on the subject directly
873
873
 
874
874
  ```ruby
875
875
  it 'something' do
876
- subject.call(['foo', 'bar', ['baz']])
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.call(['foo']) == 'bar'
904
- subject.call(['baz']).should be_an Array
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.call(['a', 'b']) }.should raise_error(Puppet::ParseError)
923
- expect { subject.call(['a']) }.should_not raise_error(Puppet::ParseError)
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
 
@@ -213,7 +213,7 @@ module Puppet
213
213
  end
214
214
 
215
215
  class Autoload
216
- if singleton_class.respond_to?(:load_file)
216
+ if respond_to?(:load_file)
217
217
  singleton_class.send(:alias_method, :old_load_file, :load_file)
218
218
 
219
219
  def self.load_file(*args)
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2018-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec