File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,14 @@ implementation. This should only be enabled if you're running into an issue
186
186
running cross-platform tests where you have Ruby code (types, providers,
187
187
functions, etc) that use ` Pathname#absolute? ` .
188
188
189
+ #### setup\_ fixtures
190
+ Type | Default | Puppet Version(s)
191
+ ------- | ------- | ---------------
192
+ Boolean | ` true ` | 2.x, 3.x, 4.x
193
+
194
+ Configures rspec-puppet to automatically create a link from the root of your
195
+ module to ` spec/fixtures/<module name> ` at the beginning of the test run.
196
+
189
197
## Naming conventions
190
198
191
199
For clarity and consistency, I recommend that you use the following directory
Original file line number Diff line number Diff line change 38
38
c . add_setting :stringify_facts , :default => true
39
39
c . add_setting :strict_variables , :default => false
40
40
c . add_setting :adapter
41
+ c . add_setting :setup_fixtures , :default => true
41
42
42
43
c . before ( :all ) do
43
- RSpec ::Puppet ::Setup . safe_setup_directories ( nil , false )
44
+ if RSpec . configuration . setup_fixtures?
45
+ RSpec ::Puppet ::Setup . safe_setup_directories ( nil , false )
46
+ end
44
47
end
45
48
46
49
if defined? ( Puppet ::Test ::TestHelper )
You can’t perform that action at this time.
0 commit comments