simp-beaker-helpers 1.5.3 → 1.5.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/simp/beaker_helpers.rb +15 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7e6ccefb3c2c3e10117140a310fe385a5263e7d
4
- data.tar.gz: dc48f4b07005bcc2278564e3f5b0e8ecff8f1230
3
+ metadata.gz: d1683b69319f69fd99462fe7f9da0526293fba0b
4
+ data.tar.gz: 04f44fbd87c2720e42f0154b4b12b530226759fe
5
5
  SHA512:
6
- metadata.gz: 01781e927687b40585c3ddca1a217195cf7bb3c496143c5c98efafdf3f49e6eb763ac6aa1b9e19dbb9f8702439d863257480bd8d238ec95b9630fb1669178e33
7
- data.tar.gz: a96fc9d648ec646148fc04f166546d151764c3f786d73b8c2e48ab7a1a5dea570cdfd098a5b6991389b243dcdbfc99f4a737d372c543ce2bce1ccb67b22a3065
6
+ metadata.gz: 4a9a4ae1b974bae8659f4b5604e682552f0e9e0cf4cc90f4c57e50ca8e51838d4083c706f0c7015d650653978f64b1601c29a300e4a268ec63d3f5688138db44
7
+ data.tar.gz: e604bf594bcbe38689eb0af83c033aeacf58e70f3d4d8fbb2c553c6227037f35f5ee3b7bb2fe28cf1538a6dc5e192d41a3faa1a5d24b51f5e9e60f6578abe16f
@@ -1,7 +1,7 @@
1
1
  module Simp; end
2
2
 
3
3
  module Simp::BeakerHelpers
4
- VERSION = '1.5.3'
4
+ VERSION = '1.5.4'
5
5
 
6
6
  # use the `puppet fact` face to look up facts on an SUT
7
7
  def pfact_on(sut, fact_name)
@@ -10,6 +10,20 @@ module Simp::BeakerHelpers
10
10
  facts.fetch(fact_name)
11
11
  end
12
12
 
13
+ # Return the path to the 'spec/fixtures' directory
14
+ def fixtures_path
15
+ STDERR.puts ' ** fixtures_path' if ENV['BEAKER_helpers_verbose']
16
+ dir = RSpec.configuration.default_path
17
+ dir = File.join('.', 'spec') unless dir
18
+
19
+ dir = File.join(File.expand_path(dir), 'fixtures')
20
+
21
+ if File.directory?(dir)
22
+ return dir
23
+ else
24
+ raise("Could not find fixtures directory at '#{dir}'")
25
+ end
26
+ end
13
27
 
14
28
  # Locates .fixture.yml in or above this directory.
15
29
  def fixtures_yml_path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-beaker-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-11 00:00:00.000000000 Z
12
+ date: 2016-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beaker