Commit d466e7f
Ciaran McCrisken
(IAC-1228) Allow File.read to passthrough for JSON spec tests
In the context of Puppet 7 there are two subsequent calls to
File.read from the catalog generated from the tests of `loadjson_spec.rb`
and `load_module_metadata_spec.rb`
Prior to this commit, these calls were causing exceptions from
RSpec as the mock expectations for File.read were being thrown off.
This did not manifest on Puppet 5 or 6.
After this commit, any calls to File.read that do not conform to
the expected arguments we want to mock a response for, are passed
through to File.read.1 parent b4605c2 commit d466e7f
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
0 commit comments